# safe-base64

> URL Safe Base64 encoding

Latest version **2.0.1-0** (published 2020-02-01) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.1-0 |
| Published | 2020-02-01 |
| First published | 2020-02-01 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 8.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | RGBboy |
| Maintainers | seangenabe |
| Keywords | base64, encoding, url, util, safe, filename, base64url, urlsafe-base64 |

## Links

- npm: https://www.npmjs.com/package/safe-base64
- Repository: https://gitlab.com/seangenabe/safe-base64
- Issues: https://gitlab.com/seangenabe/safe-base64/issues
- npm.io page: https://npm.io/package/safe-base64

## Alternatives

- [flatbuffers](https://npm.io/package/flatbuffers.md) — 6.0M weekly downloads
- [jwt-simple](https://npm.io/package/jwt-simple.md) — 259.5K weekly downloads
- [@exodus/patch-broken-hermes-typed-arrays](https://npm.io/package/@exodus/patch-broken-hermes-typed-arrays.md) — 28.5K weekly downloads
- [@native-to-anchor/buffer-layout](https://npm.io/package/@native-to-anchor/buffer-layout.md) — 12.2K weekly downloads
- [binary-parser-encoder](https://npm.io/package/binary-parser-encoder.md) — 5.3K weekly downloads

## Recent versions

- 2.0.1-0 (latest) — 2020-02-01

## README

# safe-base64

base64url - URL-safe base64 for node.js Buffer

Fork of [urlsafe-base64](https://github.com/RGBboy/urlsafe-base64)

## Usage

```typescript
import { encode, decode } from "safe-base64"
```

### encode(buffer)

Encodes a buffer to a URL-safe base64 string (RFC 4648). The padding is removed.

### decode(input)

Decodes a string to a buffer.

## Why

* No out-of-scope methods
* No confusing extra input parameters
* Written in TypeScript

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