🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more

base58-js

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
b

base58-js

A light weight universal JavaScript base58 encoder / decoder.

3.0.3
latest
100

Supply Chain Security

100

Vulnerability

87

Quality

86

Maintenance

100

License

Version published
Weekly downloads
81K
-21.84%
Maintainers
1
Weekly downloads
 
Created
Issues
1

base58 logo

base58-js

NPM Package CI status License: MIT

A lightweight (~560 bytes) universal JavaScript Base58 encoder and decoder.

Installation

Install base58-js via npm:

npm install base58-js

Requirements

Supported environments:

Usage Examples

Convert Base58 to binary

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

import { binary_to_base58 } from "base58-js";

const str = binary_to_base58([15, 239, 64]);
console.log(str);

The logged output was Thequickbrownfoxjumpedoverthea1zydog.

Exports

Deep imports from the ECMAScript modules are exported via the package.json field exports:

TypeScript Support

This package includes type definitions via TypeScript JSDoc for excellent IntelliSense and type checking.

FAQs

Package last updated on 24 Jun 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts