
Security News
Node.js Homepage Adds Paid Support Link, Prompting Contributor Pushback
A new Node.js homepage button linking to paid support for EOL versions has sparked a heated discussion among contributors and the wider community.
A light weight (~560 byte) universal JavaScript base58 encoder / decoder.
>= 8
defaults
not IE 11
.$ npm i base58-js
Base58 characters must only include numbers 123456789, uppercase ABCDEFGHJKLMNPQRSTUVWXYZ and lowercase abcdefghijkmnopqrstuvwxyz.
Type: string
Converts a base58
string to its corresponding binary representation.
Parameter | Type | Description |
---|---|---|
base58String | base58_chars | base58 encoded string |
Returns: Uint8Array — binary representation for the base58 string.
Ways to import
.
import { base58_to_binary } from 'base58-js'
Ways to require
.
const { base58_to_binary } = require('base58-js')
Usage.
const bin = base58_to_binary('6MRy') console.log(bin)
Logged output will be Uint8Array(3) [15, 239, 64].
Converts a Uint8Array into a base58 string.
Parameter | Type | Description |
---|---|---|
uint8array | Uint8Array | Array | Unsigned integer. |
Returns: base58_chars — The base58 string representation of the binary array.
Ways to require
.
const { binary_to_base58 } = require('base58-js')
Ways to import
.
import { binary_to_base58 } from 'base58-js'
Usage.
const str = binary_to_base58([15, 239, 64]) console.log(str)
Logged output will be 6MRy.
1.0.0
package.json
files removed static from white list.@size-limit/preset-small-lib
.FAQs
A light weight universal JavaScript base58 encoder / decoder.
The npm package base58-js receives a total of 100,197 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
A new Node.js homepage button linking to paid support for EOL versions has sparked a heated discussion among contributors and the wider community.
Research
North Korean threat actors linked to the Contagious Interview campaign return with 35 new malicious npm packages using a stealthy multi-stage malware loader.
Research
Security News
The Socket Research Team investigates a malicious Python typosquat of a popular password library that forces Windows shutdowns when input is incorrect.