https://github.com/niklasvh/base64-arraybuffer
Encode/decode base64 data into ArrayBuffers
https://github.com/niklasvh/base64-arraybuffer
arraybuffer base64 javascript typedarray
Last synced: 7 months ago
JSON representation
Encode/decode base64 data into ArrayBuffers
- Host: GitHub
- URL: https://github.com/niklasvh/base64-arraybuffer
- Owner: niklasvh
- License: mit
- Created: 2012-12-21T21:34:37.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2023-03-04T03:38:41.000Z (almost 3 years ago)
- Last Synced: 2025-04-14T08:14:05.841Z (9 months ago)
- Topics: arraybuffer, base64, javascript, typedarray
- Language: TypeScript
- Homepage:
- Size: 373 KB
- Stars: 359
- Watchers: 11
- Forks: 58
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# base64-arraybuffer

[](https://www.npmjs.org/package/base64-arraybuffer)
[](https://www.npmjs.org/package/base64-arraybuffer)
Encode/decode base64 data into ArrayBuffers
### Installing
You can install the module via npm:
npm install base64-arraybuffer
## API
The library encodes and decodes base64 to and from ArrayBuffers
- __encode(buffer)__ - Encodes `ArrayBuffer` into base64 string
- __decode(str)__ - Decodes base64 string to `ArrayBuffer`
### Testing
You can run the test suite with:
npm test
## License
Copyright (c) 2012 Niklas von Hertzen
Licensed under the MIT license.