base64-arraybuffer-es6
TypeScript icon, indicating that this package has built-in type declarations

3.1.0 • Public • Published

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.

Readme

Keywords

Package Sidebar

Install

npm i base64-arraybuffer-es6

Weekly Downloads

204,858

Version

3.1.0

License

MIT

Unpacked Size

14.5 kB

Total Files

10

Last publish

Collaborators

  • brettz9