/** | |
* Decodes a base64 string | |
* @param {string} base64 - the string to decode | |
* @returns {string} | |
*/ | |
export default function atob ( base64 ) { | |
return new Buffer( base64, 'base64' ).toString( 'utf8' ); | |
} |
/** | |
* Decodes a base64 string | |
* @param {string} base64 - the string to decode | |
* @returns {string} | |
*/ | |
export default function atob ( base64 ) { | |
return new Buffer( base64, 'base64' ).toString( 'utf8' ); | |
} |