A light weight universal JavaScript base58 encoder / decoder.
npm install base58-js  
A lightweight (~560 bytes) universal JavaScript Base58 encoder and decoder.
---
Install base58-js via npm:
``bash`
npm install base58-js
Supported environments:
- Node.js versions ^16 || >=17.0.0 .> 0.5%, not OperaMini all, not dead
- Browsers matching the Browserslist query .
Convert Base58 to binary
`js
import { base58_to_binary } from "base58-js";
const bin = base58_to_binary("6MRy");
console.log(bin);
`
> Logged output will be Uint8Array(3) [15, 239, 64].
Convert binary to base58
`js
import { binary_to_base58 } from "base58-js";
const str = binary_to_base58([15, 239, 64]);
console.log(str);
`
> The logged output was Thequickbrownfoxjumpedoverthea1zydog.
Deep imports from the ECMAScript modules are exported via the package.json field exports:
- index.js
- create_base58_map.js
- binary_to_base58.js
- base58_to_binary.js
- base58_chars.js`
This package includes type definitions via TypeScript JSDoc for excellent IntelliSense and type checking.