{"name":"bech32","version":"2.0.0","description":"Bech32 encoding / decoding","keywords":["base32","bech32","bech32m","bitcoin","crypto","crytography","decode","decoding","encode","encoding"],"main":"dist/index.js","types":"dist/index.d.ts","license":"MIT","devDependencies":{"@types/node":"^14.0.14","@types/tape":"^4.13.0","nyc":"^15.0.0","prettier":"^2.0.5","rimraf":"^3.0.2","tap-dot":"*","tape":"^4.13.2","tslint":"^6.1.3","typescript":"^3.9.5"},"repository":{"url":"git+ssh://git@github.com/bitcoinjs/bech32.git","type":"git"},"scripts":{"build":"npm run clean && tsc -d","clean":"rimraf dist","coverage":"nyc -x dist/test/*.js --check-coverage --branches 90 --functions 90 tape dist/test/*.js","format":"npm run prettier -- --write","format:ci":"npm run prettier -- --check","gitdiff:ci":"npm run build && git diff --exit-code","lint":"tslint -p tsconfig.json -c tslint.json","prettier":"prettier --print-width 100 --single-quote --trailing-comma=all \"**/!(*.d).ts\"","test":"tape dist/test/*.js | tap-dot"},"gitHead":"d89ca54494ff85b2d3816f732bc7803eaa48d70e","bugs":{"url":"https://github.com/bitcoinjs/bech32/issues"},"homepage":"https://github.com/bitcoinjs/bech32#readme","_id":"bech32@2.0.0","_nodeVersion":"12.18.3","_npmVersion":"6.14.11","dist":{"integrity":"sha512-LcknSilhIGatDAsY1ak2I8VtGaHNhgMSYVxFrGLXv+xLHytaKZKcaUJJUE7qmBr7h33o5YQwP55pMI0xmkpJwg==","shasum":"078d3686535075c8c79709f054b1b226a133b355","tarball":"http://registry-npm.ywwl.com/bech32/download/bech32-2.0.0.tgz","fileCount":5,"unpackedSize":10209,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgKd0KCRA9TVsSAnZWagAAjF0P/Ry8TnRItdAMvybhS5V4\npH8Y+VTVc3subnkIOJmmJUkmk4wrRFvlBe7zzXbVH8IYQhuwV3cX3zengrLo\nyby1yjw275XmBT9kXmloZHQDmAm20dx0KpqCP5xHZtg2/hS34EUAzM8oKehp\nsfvbEnfYfcno14cyc1/oVzCDAVeRcWuzo3V3r7dfxud9lM5Xxoi5/FwON1ax\nZTpn9lXzU80npp4NNBxt1U6OEkV2vahF8YVufjOfLG9xFBilCDwVFb8a2WGi\nggZd048b48kgAlQahqWMfekZfO1UlGOdhJjLQiQNWUmJyYNXyyTsHCQaC3ba\nxqU4wHFkYLpVa/R1uI4H4UCzhSh3sZWwK76FwqMoBhlna8IbuW8WmYJwHMIU\n3Lv/X3nMVy/45vwxSquisd3/o4rSDo4rwc9MCTEcB26xfwm2zYgP6iMoL9jZ\nSZQG0hPYqk9AQ8Dbl2U/sBoZo6dZHbGJb4g7SODIY4CXgDZMgZCBxG53geyj\nw0DXJSNz2RRvHA4UkMcKRB0NooSYu6cPyels11bjOxKqsMMgS+SwY2M6KZ64\nonNQS8rWMG55l+vFfvplQon+MwxtnKyB+asDXZvGM7SpCTRsVZg6ZL8k2ETz\n9E/AMm1eBY1M1cFU+x5kyEYXxomr9nzKJJrP7CijTYcdVnG5Oson+7+rx25T\nLfmn\r\n=v6tl\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDfsrhhkA1TOkpz/FRSoupn2SB61vzk6t9PE7wg74H3JAiEA+zUvZXHeG5XIzXTGt8xnl+BPxeFMQiak6TXYVNRi5Jg="}],"size":3945,"noattachment":false,"key":"/bech32/-/bech32-2.0.0.tgz"},"_npmUser":{"name":"junderw","email":"junderwood@bitcoinbank.co.jp"},"directories":{},"maintainers":[{"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/bech32_2.0.0_1613356298031_0.13338337680776036"},"_hasShrinkwrap":false,"readme":"# bech32\n[![build status](https://secure.travis-ci.org/bitcoinjs/bech32.png)](http://travis-ci.org/bitcoinjs/bech32)\n[![Version](http://img.shields.io/npm/v/bech32.svg)](https://www.npmjs.org/package/bech32)\n\nA [BIP173](https://github.com/bitcoin/bips/blob/master/bip-0173.mediawiki)/[BIP350](https://github.com/bitcoin/bips/blob/master/bip-0350.mediawiki) compatible Bech32/Bech32m encoding/decoding library.\n\n\n## Example\n``` javascript\nlet { bech32, bech32m } = require('bech32')\n\nbech32.decode('abcdef1qpzry9x8gf2tvdw0s3jn54khce6mua7lmqqqxw')\n// => {\n// \t prefix: 'abcdef',\n// \t words: [0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31]\n// }\nbech32m.decode('abcdef1l7aum6echk45nj3s0wdvt2fg8x9yrzpqzd3ryx')\n// => {\n// \t prefix: 'abcdef',\n// \t words: [31,30,29,28,27,26,25,24,23,22,21,20,19,18,17,16,15,14,13,12,11,10,9,8,7,6,5,4,3,2,1,0]\n// }\n\n// toWords etc. are available on both bech32 and bech32m objects\nlet words = bech32.toWords(Buffer.from('foobar', 'utf8'))\nbech32.encode('foo', words)\n// => 'foo1vehk7cnpwgry9h96'\nbech32m.encode('foo', words)\n// => 'foo1vehk7cnpwgkc4mqc'\n```\n\n\n### Advanced\nBIP173 enforces a limitation of 90 characters,  if extend the `LIMIT` parameter beyond this,  be aware that the [effectiveness of checksum decreases as the length increases](https://github.com/bitcoin/bips/blob/master/bip-0173.mediawiki#checksum-design).\n\nIt is highly recommended **NOT** exceed 1023 characters, as the module could only guarantee detecting 1 error.\n\n\n## Credits\n- [Peter Wuille](https://github.com/sipa/bech32) for the reference JavaScript implementation, and for authoring the Bech32 [BIP173](https://github.com/bitcoin/bips/blob/master/bip-0173.mediawiki) and Bech32m [BIP350](https://github.com/bitcoin/bips/blob/master/bip-0350.mediawiki).\n\n\n## License [MIT](LICENSE)\n","publish_time":1613356298466,"_cnpm_publish_time":1613356298466,"dist-tags":{"latest":"2.0.0"}}