sussy-util
Version:
Util package made by me
9 lines (8 loc) • 322 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
/**
* Parses the base64 encoded string and returns the utf-8 encoded string
* @param {string} val The base64 encoded value
* @returns {string} The utf8 encoded value
*/
exports.default = (val) => Buffer.from(val, 'base64').toString('utf8');