@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
Sponsors & Backers
Made with 💖 by Codinasion