{"name":"bs58","version":"5.0.0","description":"Base 58 encoding / decoding","keywords":["base58","bitcoin","crypto","crytography","decode","decoding","encode","encoding","litecoin"],"license":"MIT","devDependencies":{"standard":"^16.0.4","tape":"^4.6.3"},"repository":{"url":"git+https://github.com/cryptocoinjs/bs58.git","type":"git"},"main":"index.js","types":"index.d.ts","scripts":{"standard":"standard","test":"npm run standard && npm run unit","unit":"tape test/index.js"},"dependencies":{"base-x":"^4.0.0"},"gitHead":"d77eedfe19f3cc419e25628bc9bc44bea2df5fdd","bugs":{"url":"https://github.com/cryptocoinjs/bs58/issues"},"homepage":"https://github.com/cryptocoinjs/bs58#readme","_id":"bs58@5.0.0","_nodeVersion":"12.22.7","_npmVersion":"6.14.15","dist":{"integrity":"sha512-r+ihvQJvahgYT50JD05dyJNKlmmSlMoOGwn1lCcEzanPglg7TxYjioQUYehQ9mAR/+hOSd2jRc/Z2y5UxBymvQ==","shasum":"865575b4d13c09ea2a84622df6c8cbeb54ffc279","tarball":"http://registry-npm.ywwl.com/bs58/download/bs58-5.0.0.tgz","fileCount":6,"unpackedSize":6213,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiDktpACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrPeA/8CWYViwzTW88gof+XjHbTfWkE2bTpCjIHF680ShTCszd5a0ta\r\n8ixxZgpP9D6gLFory3mlh6E4Zd95wR0SKQq6S5+VlXx5omBOZfeaazBfQa8Y\r\nt9yY3vmZZKfgV71sjLzznl9NUa1OLIOMhhL3JJ+dTT2asf9l+PPUe2VKiDzL\r\ny55bw6f/C5Ik/AGIMcW/+9CbkI4hA1JnwNBqvdVA8xV7lLSEuQUAK1g2Van3\r\n+p01mn9ZuIFZZighx15eKb+0mgM9+fu9B0lOpq9TTDcItELAtOBLYgHHIiDF\r\npY+39HqEiWFzZljjDLGz3MVxDVjk2Bm8M/iIcWKC1gI6DzfwCdAuRYFb7tDo\r\nEqmjrjz4yoApOiTgH8c7od0WVMzMCOZkZrmGnSmPjbY/SVhe4ddi+cYFtZm+\r\nl3xP3IEgHst+po6R9WDNMhERojc9jz7jIfZGLgl3V+YLHfCXM1O9QwsBYgMv\r\nx09PU0fFMfnb58kfLEJDq8Dpv0Us88vFOksFCUiZrAVRyWYFdLkqxEK805Qa\r\nsmCKIqwMBlNB1gYfU7XNiBjaU5zHAeDNruaXXZ1pxamV2SyW2LQqVK1RToBM\r\n70r88AUpwOnTyu5q3pW0s/7RaDxzj6bIy39a7zsBqukSAUa2IcN//mMSAXrk\r\niZFi0ydCAHr/oMc+RyEo9DNHDzm6XbjVTnU=\r\n=y3RW\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCMBqGtW03xhEBe1uYPtLzorvEW+IQnZebWYnz0Uswx7AIhANyUGQY7/JpTszpxMrDqP8w40VwZUNgpd/sUjbQlI8wW"}],"size":3046,"noattachment":false,"key":"/bs58/-/bs58-5.0.0.tgz"},"_npmUser":{"name":"junderw","email":"junderwood@bitcoinbank.co.jp"},"directories":{},"maintainers":[{"name":"nadav","email":"npm@shesek.info"},{"name":"midnightlightning","email":"boydb@midnightdesign.ws"},{"name":"sidazhang","email":"sidazhang89@gmail.com"},{"name":"fanatid","email":"fanatid@ya.ru"},{"name":"jprichardson","email":"jprichardson@gmail.com"},{"name":"junderw","email":"junderwood@bitcoinbank.co.jp"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bs58_5.0.0_1645103977231_0.45321870994626945"},"_hasShrinkwrap":false,"readme":"bs58\n====\n\n[![build status](https://travis-ci.org/cryptocoinjs/bs58.svg)](https://travis-ci.org/cryptocoinjs/bs58)\n\nJavaScript component to compute base 58 encoding. This encoding is typically used for crypto currencies such as Bitcoin.\n\n**Note:** If you're looking for **base 58 check** encoding, see: [https://github.com/bitcoinjs/bs58check](https://github.com/bitcoinjs/bs58check), which depends upon this library.\n\n\nInstall\n-------\n\n    npm i --save bs58\n\n\nAPI\n---\n\n### encode(input)\n\n`input` must be a `Uint8Array`, `Buffer`, or an `Array`. It returns a `string`.\n\n**example**:\n\n```js\nconst bs58 = require('bs58')\n\nconst bytes = Uint8Array.from([\n    0, 60,  23, 110, 101, 155, 234,\n   15, 41, 163, 233, 191, 120, 128,\n  193, 18, 177, 179,  27,  77, 200,\n   38, 38, 129, 135\n])\nconst address = bs58.encode(bytes)\nconsole.log(address)\n// => 16UjcYNBG9GTK4uq2f7yYEbuifqCzoLMGS\n```\n\n\n### decode(input)\n\n`input` must be a base 58 encoded string. Returns a Uint8Array.\n\n**example**:\n\n```js\nconst bs58 = require('bs58')\n\nconst address = '16UjcYNBG9GTK4uq2f7yYEbuifqCzoLMGS'\nconst bytes = bs58.decode(address)\n// See uint8array-tools package for helpful hex encoding/decoding/compare tools\nconsole.log(Buffer.from(bytes).toString('hex'))\n// => 003c176e659bea0f29a3e9bf7880c112b1b31b4dc826268187\n```\n\nBrowser\n-----------\nYou can use this module in the browser. Install Browserify:\n\n```bash\nnpm install -g browserify\n```\n\nthen run:\n\n```bash\nbrowserify node_modules/bs58/index.js -o bs58.bundle.js --standalone bs58\n```\n\nHack / Test\n-----------\n\nUses JavaScript standard style. Read more:\n\n[![js-standard-style](https://cdn.rawgit.com/feross/standard/master/badge.svg)](https://github.com/feross/standard)\n\n\nCredits\n-------\n- [Mike Hearn](https://github.com/mikehearn) for original Java implementation\n- [Stefan Thomas](https://github.com/justmoon) for porting to JavaScript\n- [Stephan Pair](https://github.com/gasteve) for buffer improvements\n- [Daniel Cousens](https://github.com/dcousens) for cleanup and merging improvements from bitcoinjs-lib\n- [Jared Deckard](https://github.com/deckar01) for killing `bigi` as a dependency\n\n\nLicense\n-------\n\nMIT\n","publish_time":1645103977346,"_cnpm_publish_time":1645103977346,"dist-tags":{"latest":"6.0.0"}}