# base64-url

> Base64 encode, decode, escape and unescape for URL applications

Latest version **2.3.3** (published 2019-12-31) · ISC license · 0 weekly downloads

## Install

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

## Health

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

Positive: has types package; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.3.3 |
| Published | 2019-12-31 |
| First published | 2014-05-12 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | separate (@types/base64-url) |
| Module format | CommonJS |
| Node | >=6 |
| Dependencies | 0 |
| Unpacked size | 3.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 116 |
| Author | @joaquimserafim |
| Maintainers | quim |
| Keywords | base64, base64url |

## Links

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

## Alternatives

- [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
- [tg-resolve](https://npm.io/package/tg-resolve.md) — 176 weekly downloads

## Recent versions

- 2.3.3 (latest) — 2019-12-31
- 2.3.2 — 2019-07-17
- 2.2.2 — 2019-06-13
- 2.2.1 — 2019-03-28
- 2.2.0 — 2018-02-27
- 2.1.0 — 2018-01-18
- 2.0.1 — 2017-11-09
- 2.0.0 — 2017-08-17
- 1.3.3 — 2016-10-28
- 1.3.2 — 2016-07-15
- 1.2.2 — 2016-04-03
- 1.2.1 — 2015-02-04
- 1.2.0 — 2015-01-21
- 1.1.0 — 2014-12-27
- 1.0.0 — 2014-05-12

## README

# base64-url

Base64 encode, decode, escape and unescape for URL applications.

<a href="https://nodei.co/npm/base64-url/"><img src="https://nodei.co/npm/base64-url.png?downloads=true"></a>


[![Build Status](https://travis-ci.org/joaquimserafim/base64-url.svg?branch=master)](https://travis-ci.org/joaquimserafim/base64-url)[![Coverage Status](https://coveralls.io/repos/github/joaquimserafim/base64-url/badge.svg)](https://coveralls.io/github/joaquimserafim/base64-url)[![ISC License](https://img.shields.io/badge/license-ISC-blue.svg?style=flat-square)](https://github.com/joaquimserafim/base64-url/blob/master/LICENSE)[![NodeJS](https://img.shields.io/badge/node-6.x.x-brightgreen.svg?style=flat-square)](https://github.com/joaquimserafim/base64-url/blob/master/package.json#L43)

[![JavaScript Style Guide](https://cdn.rawgit.com/feross/standard/master/badge.svg)](https://github.com/feross/standard)


## API

`const base64url = require('base64-url')`


### examples

```js

base64url.encode('Node.js is awesome.')
// returns Tm9kZS5qcyBpcyBhd2Vzb21lLg

base64url.decode('Tm9kZS5qcyBpcyBhd2Vzb21lLg')
// returns Node.js is awesome.

base64url.escape('This+is/goingto+escape==')
// returns This-is_goingto-escape

base64url.unescape('This-is_goingto-escape')
// returns This+is/goingto+escape==

//
// setting a different encoding 
//

base64url.encode(string to encode, encoding)
base64url.decode(string to decode, encoding)

```


#### ISC License (ISC)

# Alternatives

- [base64url](https://github.com/brianloveswords/base64url)

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