Package Exports
- @endo/base64
- @endo/base64/atob.js
- @endo/base64/btoa.js
- @endo/base64/decode.js
- @endo/base64/encode.js
- @endo/base64/package.json
- @endo/base64/shim.js
Readme
base64
Base64 is a JavaScript package that encodes and decodes
Base64 between strings and
Uint8Arrays.
Base64 exports TypeScript definitions and is suitable for both web and Node.js.
Install
npm install @endo/base64Usage
import { encodeBase64, decodeBase64 } from '@endo/base64';
const string = encodeBase64(bytes);
const bytes = decodeBase64(string);