# base64-arraybuffer

> Encode/decode base64 data into ArrayBuffers

Latest version **1.0.2** (published 2022-01-22) · MIT license · 0 weekly downloads

## Install

```sh
npm install base64-arraybuffer
pnpm add base64-arraybuffer
yarn add base64-arraybuffer
bun add base64-arraybuffer
```

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2022-01-22 |
| First published | 2012-12-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >= 0.6.0 |
| Dependencies | 0 |
| Unpacked size | 23.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 373 |
| Author | Niklas von Hertzen |
| Maintainers | niklasvh |

## Links

- npm: https://www.npmjs.com/package/base64-arraybuffer
- Repository: https://github.com/niklasvh/base64-arraybuffer
- Issues: https://github.com/niklasvh/base64-arraybuffer/issues
- npm.io page: https://npm.io/package/base64-arraybuffer

## Recent versions

- 1.0.2 (latest) — 2022-01-22
- 1.0.1 — 2021-08-10
- 1.0.0 — 2021-08-10
- 0.2.0 — 2019-04-28
- 0.1.5 — 2015-11-19
- 0.1.4 — 2015-10-18
- 0.1.3 — 2015-10-18
- 0.1.2 — 2014-03-18
- 0.1.0 — 2012-12-21

## README

# base64-arraybuffer

![CI](https://github.com/niklasvh/base64-arraybuffer/workflows/CI/badge.svg?branch=master)
[![NPM Downloads](https://img.shields.io/npm/dm/base64-arraybuffer.svg)](https://www.npmjs.org/package/base64-arraybuffer)
[![NPM Version](https://img.shields.io/npm/v/base64-arraybuffer.svg)](https://www.npmjs.org/package/base64-arraybuffer)

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.

---
_Source: https://npm.io/package/base64-arraybuffer · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
