{"_id":"bs58-15","name":"bs58-15","dist-tags":{"latest":"6.0.1"},"versions":{"6.0.1":{"name":"bs58-15","version":"6.0.1","type":"module","description":"Base 58 encoding / decoding","keywords":["base58","bitcoin","crypto","crytography","decode","decoding","encode","encoding","litecoin"],"license":"MIT","devDependencies":{"@types/node":"^20.14.8","rimraf":"^5.0.7","tape":"^5.3.0","ts-standard":"^12.0.2","typescript":"^5.5.2"},"repository":{"url":"git+https://github.com/cryptocoinjs/bs58.git","type":"git"},"main":"src/cjs/index.cjs","module":"src/esm/index.js","types":"src/cjs/index.d.ts","exports":{".":{"import":{"types":"./src/esm/index.d.ts","default":"./src/esm/index.js"},"require":{"types":"./src/cjs/index.d.cts","default":"./src/cjs/index.cjs"}}},"scripts":{"build":"npm run clean && tsc -p ./tsconfig.json && tsc -p ./tsconfig.cjs.json","clean":"rimraf src","gitdiff":"npm run build && git diff --exit-code","postbuild":"find src/cjs -type f \\( -name \"*.js\" -o -name \"*.ts\" \\) -exec bash -c 'ext=\"${0##*.}\"; mv \"$0\" \"${0%.$ext}.c$ext\"' {} \\;","standard":"ts-standard --ignore src --ignore test","test":"npm run standard && npm run unit","unit":"tape test/index.js"},"dependencies":{"base65-15x":"^5.0.1"},"directories":{"test":"test"},"author":"","bugs":{"url":"https://github.com/cryptocoinjs/bs58/issues"},"homepage":"https://github.com/cryptocoinjs/bs58#readme","_id":"bs58-15@6.0.1","_nodeVersion":"24.11.1","_npmVersion":"11.6.2","dist":{"integrity":"sha512-owB5f6xDKn0wpyeEjd9HOXb/u9WTeBweeowfVeN25mHz+da8ARHiJ4n6NDHeVQRB1hsrTZs/q1uF6v9ecW8+Kw==","shasum":"6908dad51bf8bb28ed0d1b51cd758cca07dec009","tarball":"https://registry.npmjs.org/bs58-15/-/bs58-15-6.0.1.tgz","fileCount":7,"unpackedSize":5617,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCF9Vx3NEs7hHC2jGVyP9jJAGsO0FZ1iW0aLkqKZ3sFSAIhAMxqBv9b3YPyqEsYpuqJPX8ahvKgoMtcYuaZjz7lSRmd"}]},"_npmUser":{"name":"smallmantis","email":"reinoheinrich@gmail.com"},"maintainers":[{"name":"smallmantis","email":"reinoheinrich@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/bs58-15_6.0.1_1786449896861_0.6082299859985969"},"_hasShrinkwrap":false}},"time":{"created":"2026-08-11T12:04:56.640Z","6.0.1":"2026-08-11T12:04:57.008Z","modified":"2026-08-11T12:04:57.194Z"},"maintainers":[{"name":"smallmantis","email":"reinoheinrich@gmail.com"}],"description":"Base 58 encoding / decoding","homepage":"https://github.com/cryptocoinjs/bs58#readme","keywords":["base58","bitcoin","crypto","crytography","decode","decoding","encode","encoding","litecoin"],"repository":{"url":"git+https://github.com/cryptocoinjs/bs58.git","type":"git"},"bugs":{"url":"https://github.com/cryptocoinjs/bs58/issues"},"license":"MIT","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\nimport bs58 from '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\nimport bs58 from '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/cjs/index.cjs -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","readmeFilename":"README.md","_rev":"1-caf52be8f87de9600b8540a601f06dcf"}