UNPKG

r2papi

Version:

r2api on top of r2pipe for typescript and js

25 lines (24 loc) 647 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Base64 = void 0; class Base64 { /** * Encode the given input string using base64 * * @param {string} input string to encode * @returns {string} base64 encoded string */ static encode(input) { return (0, exports.b64)(input); } /** * Decode the given base64 string into plain text * * @param {string} input string encoded in base64 format * @returns {string} base64 decoded string */ static decode(input) { return (0, exports.b64)(input, true); } } exports.Base64 = Base64;