https://github.com/fabiospampinato/decode-base64
A tiny function for decoding base64 strings into ArrayBuffer objects, useful for bundling and loading WASM modules.
https://github.com/fabiospampinato/decode-base64
arraybuffer base64 browser buffer decode node web
Last synced: 11 months ago
JSON representation
A tiny function for decoding base64 strings into ArrayBuffer objects, useful for bundling and loading WASM modules.
- Host: GitHub
- URL: https://github.com/fabiospampinato/decode-base64
- Owner: fabiospampinato
- License: mit
- Created: 2021-06-06T10:38:47.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2025-01-25T19:28:01.000Z (over 1 year ago)
- Last Synced: 2025-06-27T04:50:05.966Z (12 months ago)
- Topics: arraybuffer, base64, browser, buffer, decode, node, web
- Language: JavaScript
- Size: 10.7 KB
- Stars: 4
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
# Decode Base64
A tiny function for decoding base64 strings into Uint8Arrays, useful for bundling and loading WASM modules.
## Install
```sh
npm install decode-base64
```
## Usage
```ts
import decode from 'decode-base64';
// let's decode a base64 string to a Uint8Array
decode ( 'base64 string here...' ); // => Uint8Array
```
## License
MIT © Fabio Spampinato