9 lines
290 B
JavaScript
9 lines
290 B
JavaScript
import { logger } from "./logger.js";
|
|
export function decodeBase64(textData) {
|
|
return new Uint8Array(Buffer.from(textData, "base64"));
|
|
}
|
|
;
|
|
export function encodeBase64(data) {
|
|
return Buffer.from(logger.getBytes(data, "data")).toString("base64");
|
|
}
|
|
//# sourceMappingURL=base64.js.map
|