Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
base58check
Advanced tools
JavaScript component to compute base 58 check encoding. This encoding is typically used for crypto currencies such as Bitcoin.
npm i --save base58check
data
must be a Buffer or a string
. It returns a string
.
example:
const base58check = require('base58check')
const data = '086eaa677895f92d4a6c5ef740c168932b5e3f44'
console.log(base58check.encode(data)) // => 1mayif3H2JDC62S4N3rLNtBNRAiUUP99k
string
must be a base 58 check encoded string. Returns a Object
for prefix & data.
example:
const base58check = require('base58check')
const address = '1mayif3H2JDC62S4N3rLNtBNRAiUUP99k'
console.log(base58check.decode(address))
// => { prefix: <Buffer 00>, data: <Buffer 08 6e aa 67 78 95 f9 2d 4a 6c 5e f7 40 c1 68 93 2b 5e 3f 44> }
// if using encoding
console.log(base58check.decode(address, 'hex'))
// => { prefix: '00', data: '086eaa677895f92d4a6c5ef740c168932b5e3f44' }
Uses JavaScript standard style. Read more:
bs58
- JavaScript component to compute base 58 encoding. This encoding is typically used for crypto currencies such as Bitcoin.The MIT License (MIT)
Copyright (c) 2016
FAQs
Base58Check encoding
The npm package base58check receives a total of 9,842 weekly downloads. As such, base58check popularity was classified as popular.
We found that base58check demonstrated a not healthy version release cadence and project activity because the last version was released 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
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.