base64/atob.js

import { Buffer } from 'buffer';
/**
* Encodes a string into Base 64
*
* @since v0.1.3
* @category Convert
* @param {string} string - The value convert to Base 64
* @returns string
* @example
* atob('hello')       //=> aGVsbG8=
*/
const atob = (string) => {
	return Buffer.from(string).toString('base64');
};

export { atob };