UNPKG

sussy-util

Version:
9 lines (8 loc) 322 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) => Buffer.from(val, 'base64').toString('utf8');