https://github.com/streamich/uint8-to-b64
Isomorphic Uint8Array conversion to Base64 string and back for browser and Node.js
https://github.com/streamich/uint8-to-b64
Last synced: 11 months ago
JSON representation
Isomorphic Uint8Array conversion to Base64 string and back for browser and Node.js
- Host: GitHub
- URL: https://github.com/streamich/uint8-to-b64
- Owner: streamich
- Created: 2021-03-30T19:34:00.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-12-15T14:49:57.000Z (over 2 years ago)
- Last Synced: 2025-08-03T23:48:33.739Z (11 months ago)
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/uint8-to-b64
- Size: 3.91 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# `ArrayBuffer` to Base64 string and back
Isomorphic helpers to encode and decode `Uint8Array` to Base64 string and back.
Works in browser and Node.js.
API:
```ts
encode(ab: Uint8Array): string;
decode(str: string): Uint8Array;
```
Contents:
- `index.js` — Node.js version
- `browser.js` — browser version