Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
28 lines
831 B
Plaintext
28 lines
831 B
Plaintext
# 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.
|