# base-58

> Base58 encoding & decoding for Node.js & web agent windows.

Latest version **0.0.1** (published 2014-10-26) · 0 weekly downloads

## Install

```sh
npm install base-58
pnpm add base-58
yarn add base-58
bun add base-58
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2014-10-26 |
| First published | 2014-10-26 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 7 |
| Maintainers | undefined45678 |
| Keywords | Base58, decode, decoding, encode, encoding |

## Links

- npm: https://www.npmjs.com/package/base-58
- Repository: https://github.com/45678/Base58
- Issues: https://github.com/45678/Base58/issues
- npm.io page: https://npm.io/package/base-58

## 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

- 0.0.1 (latest) — 2014-10-26

## README

Base58 in a `window`
===================

Get [`Base58.js`](https://raw.githubusercontent.com/45678/base58/master/Base58.js)
and add it to your web page with a script tag:

    <script src="Base58.js" charset="utf-8"></script>

`window.Base58` is defined when the script is executed. There are two methods:

    Base58.encode(a Uint8Array) returns a String
    Base58.decode(a String) returns a Uint8Array


Base58 in Node.js
=================

Run `npm install base-58` to add the module to your package. Require it in
your program with `Base58 = require("base-58")`. Again, there are two methods:

    Base58.encode(a Buffer or Uint8Array) returns a String
    Base58.decode(a String) returns a Buffer


Credits
-------
- [Mike Hearn](https://github.com/mikehearn) for original Java implementation.
- [Stefan Thomas](https://github.com/justmoon) for porting to JavaScript.
- [Stephan Pair](https://github.com/gasteve) for buffer improvements.
- [Daniel Cousens](https://github.com/dcousens) for cleanup and merging improvements from bitcoinjs-lib.
- [Jared Deckard](https://github.com/deckar01) for killing `bigi` as a dependency.
- [cryptocoinjs](https://github.com/cryptocoinjs/bs58) for the original package.
- [Js2coffee](http://js2coffee.org/) for conversion to CoffeeScript.

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