@codinasion/string-to-base64
v1.0.1
Published
Converts a string to base64
Downloads
2
Maintainers
Readme
@codinasion/string-to-base64
Converts a string to a base64 string.
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
Usage
import { StringToBase64 } from "@codinasion/string-to-base64";
const string = "Hello World!";
const base64String = StringToBase64(string);
console.log(base64String); // SGVsbG8gV29ybGQh