GitPedia

Base64 arraybuffer

Encode/decode base64 data into ArrayBuffers

From niklasvh·Updated June 6, 2026·View on GitHub·

The library encodes and decodes base64 to and from ArrayBuffers The project is written primarily in TypeScript, distributed under the MIT License license, first published in 2012. Key topics include: arraybuffer, base64, javascript, typedarray.

base64-arraybuffer

CI
NPM Downloads
NPM Version

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.

Contributors

Showing top 4 contributors by commit count.

View all contributors on GitHub →

This article is auto-generated from niklasvh/base64-arraybuffer via the GitHub API.Last fetched: 6/25/2026