@hazae41/base64
Version:
Base64 adapter for JS implementations
19 lines (16 loc) • 584 B
JavaScript
import { fromNativeOrBuffer } from '../buffer/index.mjs';
const adapter = fromNativeOrBuffer();
function encodePaddedOrThrow(bytes) {
return adapter.encodePaddedOrThrow(bytes);
}
function decodePaddedOrThrow(text) {
return adapter.decodePaddedOrThrow(text);
}
function encodeUnpaddedOrThrow(bytes) {
return adapter.encodeUnpaddedOrThrow(bytes);
}
function decodeUnpaddedOrThrow(text) {
return adapter.decodeUnpaddedOrThrow(text);
}
export { decodePaddedOrThrow, decodeUnpaddedOrThrow, encodePaddedOrThrow, encodeUnpaddedOrThrow };
//# sourceMappingURL=index.mjs.map