0.2.0 • Published 4 years ago

base58-encode v0.2.0

Weekly downloads
33
License
MIT
Repository
github
Last release
4 years ago

base58-encode.js

Fast and beautiful base58 encoder. No dependencies, 40LOC.

npm install base58-encode

Usage: base58(text[, alphabet]). Included alphabets: base58.BTC (default), base58.XRP

First argument could be string, Buffer or UInt8Array.

const base58 = require('base58-encode');

base58('hello world'); // => 'StV1DL6CwTryKyV'
base58(Buffer.from('hello world')) // node
new Uint8Array(Array.from('hello world').map(c => c.charCodeAt(0))) // Browser
// => 'StV1DL6CwTryKyV'
base58('hello world', base58.XRP); // => 'StVrDLaUATiyKyV'

License

MIT License (c) 2019, Paul Miller (https://paulmillr.com).

See LICENSE file.

0.2.0

4 years ago

0.1.4

5 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago