@endo/base64
Version:
23 lines (15 loc) • 430 B
Markdown
is a JavaScript package that encodes and decodes
[ ](https://en.wikipedia.org/wiki/Base64) between strings and
`Uint8Array`s.
Base64 exports TypeScript definitions and is suitable for both web and Node.js.
```sh
npm install @endo/base64
```
```js
import { encodeBase64, decodeBase64 } from '@endo/base64';
const string = encodeBase64(bytes);
const bytes = decodeBase64(string);
```
Base64