Getting Started with Package Manager
Installation
The base64-converter package lives in npm. To install the latest version, run one of the following commands:
npm install @ony3000/base64-converter
yarn add @ony3000/base64-converter
pnpm install @ony3000/base64-converter
How to use
Wherever you want to use base64 conversion, you can import the necessary functions and use them.
import { base64Encode, base64Decode } from '@ony3000/base64-converter';
console.log(base64Encode('Hello world!')); // 'SGVsbG8gd29ybGQh'
console.log(base64Decode('SGVsbG8gd29ybGQh')); // 'Hello world!'