# @protobufjs/base64

> A minimal base64 implementation for number arrays.

Latest version **1.1.2** (published 2017-06-09) · BSD-3-Clause license · 0 weekly downloads

## Install

```sh
npm install @protobufjs/base64
pnpm add @protobufjs/base64
yarn add @protobufjs/base64
bun add @protobufjs/base64
```

## Health

**Score 45/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score; high quality score; popular repo.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.1.2 |
| Published | 2017-06-09 |
| First published | 2016-12-11 |
| Weekly downloads | 0 |
| License | BSD-3-Clause |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 10584 |
| Author | Daniel Wirtz |
| Maintainers | dcode, protobufjs |

## Links

- npm: https://www.npmjs.com/package/@protobufjs/base64
- Repository: https://github.com/dcodeIO/protobuf.js
- Homepage: https://github.com/dcodeIO/protobuf.js#readme
- Issues: https://github.com/dcodeIO/protobuf.js/issues
- npm.io page: https://npm.io/package/@protobufjs/base64

## Recent versions

- 1.1.2 (latest) — 2017-06-09
- 1.1.1 — 2017-01-25
- 1.1.0 — 2017-01-25
- 1.0.5 — 2017-01-03
- 1.0.4 — 2016-12-20
- 1.0.3 — 2016-12-16
- 1.0.2 — 2016-12-11
- 1.0.1 — 2016-12-11
- 1.0.0 — 2016-12-11

## README

@protobufjs/base64
==================
[![npm](https://img.shields.io/npm/v/@protobufjs/base64.svg)](https://www.npmjs.com/package/@protobufjs/base64)

A minimal base64 implementation for number arrays.

API
---

* **base64.length(string: `string`): `number`**<br />
  Calculates the byte length of a base64 encoded string.

* **base64.encode(buffer: `Uint8Array`, start: `number`, end: `number`): `string`**<br />
  Encodes a buffer to a base64 encoded string.

* **base64.decode(string: `string`, buffer: `Uint8Array`, offset: `number`): `number`**<br />
  Decodes a base64 encoded string to a buffer.

**License:** [BSD 3-Clause License](https://opensource.org/licenses/BSD-3-Clause)

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