Package Exports
- base58check
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (base58check) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
base58check
JavaScript component to compute base 58 check encoding. This encoding is typically used for crypto currencies such as Bitcoin.
Install
npm i --save base58checkAPI
string base58check(data, prefix = '00', encoding = 'hex')
data must be a Buffer or a string. It returns a string.
example:
const base58check = require('base58check')
let data = 'f5f2d624cfb5c3f66d06123d0829d1c9cebf770e'
console.log(base58check(data)) // => 1PRTTaJesdNovgne6Ehcdu1fpEdX7913CKHack / Test
Uses JavaScript standard style. Read more:
Credits
- unrealce for original JavaScript implementation
Related
bs58- JavaScript component to compute base 58 encoding. This encoding is typically used for crypto currencies such as Bitcoin.
License
The MIT License (MIT)
Copyright (c) 2016
