base64-arraybuffer-es6
v3.1.0
Published
Encode/decode base64 data into ArrayBuffers
Downloads
1,060,146
Readme
base64-arraybuffer-es6
Encode/decode base64 data into ArrayBuffers
An ES6 Modules-based port of base64-arraybuffer.
Also supports byteOffset
and length
arguments for partial encoding and
allows for selective import of the two methods.
Getting Started
Install the module with: npm install base64-arraybuffer-es6
API
The library encodes and decodes base64 to and from ArrayBuffers
- encode(buffer, byteOffset, length) - Encodes
ArrayBuffer
into base64 string - decode(str [, ArrayBufferOptions]) - Decodes base64 string to
ArrayBuffer
License
Copyright (c) 2017-2019 Brett Zamir, 2012 Niklas von Hertzen Licensed under the MIT license.