{"id":13773056,"url":"https://github.com/cryptocoinjs/bs58","last_synced_at":"2025-05-16T01:07:24.691Z","repository":{"id":40630988,"uuid":"14131022","full_name":"cryptocoinjs/bs58","owner":"cryptocoinjs","description":"Base58 encoding/decoding for Bitcoin","archived":false,"fork":false,"pushed_at":"2025-05-01T10:00:28.000Z","size":169,"stargazers_count":229,"open_issues_count":0,"forks_count":50,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-05-11T09:16:01.038Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://cryptocoinjs.com/modules/misc/bs58/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cryptocoinjs.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2013-11-05T03:21:35.000Z","updated_at":"2025-05-04T14:07:28.000Z","dependencies_parsed_at":"2024-10-30T14:00:43.481Z","dependency_job_id":"9ef8f9f3-9927-478a-8365-f83fce6eceb1","html_url":"https://github.com/cryptocoinjs/bs58","commit_stats":{"total_commits":113,"total_committers":11,"mean_commits":"10.272727272727273","dds":"0.47787610619469023","last_synced_commit":"daa58b1bf2371a03a6d1bca00e9d1d6a8384c27a"},"previous_names":["cryptocoinjs/base58"],"tags_count":18,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cryptocoinjs%2Fbs58","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cryptocoinjs%2Fbs58/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cryptocoinjs%2Fbs58/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cryptocoinjs%2Fbs58/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cryptocoinjs","download_url":"https://codeload.github.com/cryptocoinjs/bs58/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254448579,"owners_count":22072764,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-03T17:01:10.758Z","updated_at":"2025-05-16T01:07:19.682Z","avatar_url":"https://github.com/cryptocoinjs.png","language":"JavaScript","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// =\u003e 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// =\u003e 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","funding_links":[],"categories":["List of content"],"sub_categories":["Utilities"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcryptocoinjs%2Fbs58","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcryptocoinjs%2Fbs58","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcryptocoinjs%2Fbs58/lists"}