ethers.js/packages/base64/lib.esm/index.js

10 lines
297 B
JavaScript
Raw Normal View History

"use strict";
import { arrayify } from "@ethersproject/bytes";
export function decode(textData) {
return arrayify(new Uint8Array(Buffer.from(textData, "base64")));
}
;
export function encode(data) {
return Buffer.from(arrayify(data)).toString("base64");
}
2020-07-13 15:03:56 +03:00
//# sourceMappingURL=index.js.map