@codinasion/string-to-base64
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

@codinasion/string-to-base64

Converts a string to a base64 string.

NPM Version Downloads LICENSE

rainbow hr

Installation

# if you're using pnpm
pnpm add @codinasion/string-to-base64

# or, if you're using npm
npm install @codinasion/string-to-base64

# or, if you're using yarn
yarn add @codinasion/string-to-base64
rainbow hr

Usage

import { StringToBase64 } from "@codinasion/string-to-base64";

const string = "Hello World!";

const base64String = StringToBase64(string);
console.log(base64String); // SGVsbG8gV29ybGQh
rainbow hr

Sponsors & Backers

Sponsors

rainbow hr

Made with 💖 by Codinasion

rainbow hr

Dependents (0)

Package Sidebar

Install

npm i @codinasion/string-to-base64

Weekly Downloads

1

Version

1.0.1

License

MIT

Unpacked Size

5.08 kB

Total Files

5

Last publish

Collaborators

  • harshraj8843