UNPKG

sussy-util

Version:
11 lines (10 loc) 321 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); /** * encodes the given string into a base64 encoded string * @param {string} value The utf-8 encoded value * @returns {string} The base64 encoded value */ exports.default = (value) => { return Buffer.from(value).toString("base64"); };