Socket
Socket
Sign inDemoInstall

base64-arraybuffer-es6

Package Overview
Dependencies
0
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
173K
decreased by-17.6%
Maintainers
1
Install size
14.2 kB
Created
Weekly downloads
 

Changelog

Source

3.1.0

  • feat: add ArrayBuffer options as second argument to decode

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 [, ArrayBufferOptions]) - 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 16 Dec 2023

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