# base58

> Flickr Flavored Base58 Encoding and Decoding

Latest version **2.0.1** (published 2018-11-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install base58
pnpm add base58
yarn add base58
bun add base58
```

## 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.0.1 |
| Published | 2018-11-19 |
| First published | 2012-04-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | separate (@types/base58) |
| Module format | CommonJS |
| Node | >= 6 |
| Dependencies | 0 |
| Unpacked size | 19.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 36 |
| Author | Jim Myhrberg |
| Maintainers | jimeh |
| Keywords | base58, flickr |

## Links

- npm: https://www.npmjs.com/package/base58
- Repository: https://github.com/jimeh/node-base58
- Homepage: https://github.com/jimeh/node-base58#readme
- Issues: https://github.com/jimeh/node-base58/issues
- npm.io page: https://npm.io/package/base58

## Recent versions

- 2.0.1 (latest) — 2018-11-19
- 1.0.1 — 2017-07-09
- 0.1.0 — 2012-04-19
- 0.0.2 — 2012-04-19
- 0.0.1 — 2012-04-16

## README

# node-base58 [![Build Status](https://secure.travis-ci.org/jimeh/node-base58.png)](http://travis-ci.org/jimeh/node-base58)

A Base58 encoding and decoding library for [Node.js].

[node.js]: http://nodejs.org/

## What?

Base58 allows you to represent a numeric value with fewer characters, useful
for short URLs among other things. Flickr is one the biggest sites that makes
use of it for short photo URLs.

For example `6857269519` becomes `brXijP` when Base58 encoded, and hence the
Flickr short URL is: `http://flic.kr/p/brXijP`

## Installation

    npm install base58

## Usage

```javascript
const Base58 = require('base58');
Base58.int_to_base58(6857269519); // 'brXijP'
Base58.base58_to_int('brXijP');   // 6857269519
```

## Credit

This package is more or less a port of the [Base58][gem] Ruby Gem by the same
name.

[gem]: https://github.com/dougal/base58

## License

Released under the MIT license. Copyright (c) 2018 Jim Myhrberg.

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