UNPKG

sussy-util

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