https://github.com/socketio/base64-arraybuffer
Encode/decode base64 data into ArrayBuffers
https://github.com/socketio/base64-arraybuffer
Last synced: 18 days ago
JSON representation
Encode/decode base64 data into ArrayBuffers
- Host: GitHub
- URL: https://github.com/socketio/base64-arraybuffer
- Owner: socketio
- License: mit
- Fork: true (niklasvh/base64-arraybuffer)
- Created: 2022-01-17T06:25:04.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2022-01-21T11:11:33.000Z (about 4 years ago)
- Last Synced: 2025-10-12T20:16:02.892Z (4 months ago)
- Language: TypeScript
- Homepage:
- Size: 95.7 KB
- Stars: 1
- Watchers: 0
- Forks: 2
- Open Issues: 0
-
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)
Forked from https://github.com/niklasvh/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.