
Security News
New CVE Forecasting Tool Predicts 47,000 Disclosures in 2025
CVEForecast.org uses machine learning to project a record-breaking surge in vulnerability disclosures in 2025.
base58-js
Advanced tools
Supply Chain Security
Vulnerability
Quality
Maintenance
License
A lightweight (~560 bytes) universal JavaScript Base58 encoder and decoder.
Install base58-js
via npm:
npm install base58-js
Supported environments:
^16
|| >=17.0.0
.> 0.5%, not OperaMini all, not dead
.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.
Deep imports from the ECMAScript modules are exported via the package.json
field exports
:
This package includes type definitions via TypeScript JSDoc for excellent IntelliSense and type checking.
3.0.3
Fixed Corrected TypeScript declaration files (.d.ts) to export functions properly without importing .d.ts files directly.
Updated index.d.ts to re-export named functions from implementation .js files, ensuring compatibility with TypeScript's module resolution and eliminating errors like TS2846 and TS1362.
Changed Improved package.json exports and types fields to explicitly map .js files to their corresponding .d.ts typings for better editor support and module resolution.
Enhanced README with detailed usage examples, environment requirements, export info, TypeScript support, and a clear explanation of tree-shaking implications.
This fixes the issue described in #4.
FAQs
A light weight universal JavaScript base58 encoder / decoder.
The npm package base58-js receives a total of 64,404 weekly downloads. As such, base58-js popularity was classified as popular.
We found that base58-js demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
CVEForecast.org uses machine learning to project a record-breaking surge in vulnerability disclosures in 2025.
Security News
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
Research
Security News
Eight new malicious Firefox extensions impersonate games, steal OAuth tokens, hijack sessions, and exploit browser permissions to spy on users.