Socket
Socket
Sign inDemoInstall

base64-arraybuffer-es6

Package Overview
Dependencies
1
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    base64-arraybuffer-es6

Encode/decode base64 data into ArrayBuffers


Version published
Weekly downloads
223K
increased by4.17%
Maintainers
1
Install size
14.2 kB
Created
Weekly downloads
 

Changelog

Source

0.6.0

  • Breaking change: Bump to at least Node 0.10.0 (had been using features not supported)
  • Linting: Check RC file
  • Linting: Use ash-nazg and check HTML and MD
  • Testing: Add nyc for coverage
  • Testing: Add test of non-null length (brings to 100% coverage)
  • Testing: Use register-assert
  • npm: Avoid deprecated rollup-plugin-babel in favor of rollup/plugin-babel
  • npm: Update core-js-bundle peerDep. and devDeps

Readme

Source

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) - Decodes base64 string to ArrayBuffer

License

Copyright (c) 2017-2019 Brett Zamir, 2012 Niklas von Hertzen Licensed under the MIT license.

Keywords

FAQs

Last updated on 10 May 2020

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc