UNPKG

sussy-util

Version:
11 lines (10 loc) 338 B
"use strict"; 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) => { return Buffer.from(val, 'base64').toString("utf8"); };