# @allex/base64

> Lightweight performance optimized base64 library by Allex

Latest version **1.0.2** (published 2019-12-10) · MIT license · 0 weekly downloads

## Install

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

## 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 | 2019-12-10 |
| First published | 2019-09-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 9.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | allex |
| Maintainers | allex |
| Keywords | base64, urlsafe-base64 |

## Links

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

## Alternatives

- [base64url](https://npm.io/package/base64url.md) — 6.1M weekly downloads
- [get-installed-path](https://npm.io/package/get-installed-path.md) — 502.9K weekly downloads
- [@uppy/url](https://npm.io/package/@uppy/url.md) — 185.8K weekly downloads
- [@d3fc/d3fc-shape](https://npm.io/package/@d3fc/d3fc-shape.md) — 16.2K weekly downloads
- [localizer](https://npm.io/package/localizer.md) — 226 weekly downloads

## Recent versions

- 1.0.2 (latest) — 2019-12-10
- 1.0.1 — 2019-09-11
- 1.0.0 — 2019-09-06

## README

# @allex/base64

Lightweight performance optimized base64 library by Allex

## Usage

```sh
yarn add @allex/base64 -D
```

```js
import { encode, decode } from '@allex/base64'

describe('base64 encode/decode', () => {
  test('B64.encode() with string', () => {
    expect(encode('allex')).toBe('YWxsZXg=');
    expect(decode('YWxsZXg=')).toBe('allex');
  });
  test('encode() with urlSafe output', () => {
    expect(encode('allex', true)).toBe('YWxsZXg');
    expect(decode('YWxsZXg')).toBe('allex');
  })
});
```

## License

[MIT](http://opensource.org/licenses/MIT)

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