next-base64
is a library for client-side
and server-side
base64 encoding and decoding
# Using npm
npm install --save next-base64@latest
# Using yarn
yarn add next-base64@latest
import nextBase64 from 'next-base64';
const base64Encoded = nextBase64.encode('Hello World');
const base64decoded = nextBase64.decode(base64Encoded);
// result
console.log(base64Encoded); // 'SGVsbG8gV29ybGQ='
console.log(base64decoded); // 'Hello World'
next-base64
under License.