{"bugs":{"url":"https://github.com/ealmansi/cashaddrjs/issues"},"dist":{"shasum":"13957cd14d43c565347c142a57794e380f2dd838","tarball":"https://registry.npmjs.org/cashaddrjs/-/cashaddrjs-0.4.1.tgz","fileCount":14,"integrity":"sha512-CgH1LV/pbpNXc9p6FVq5YDQLjIL5p/lnzVVBgvJmykyWEXgcHL+6P5Cn3B42cxznQ5xEAqsE1BAbAY6u/mM6aw==","signatures":[{"sig":"MEUCIEMYiH/myNhfqRMuCUVCplQzwsEr5Rm7VXkbXz6X7SxWAiEA9jfI4Ec+nVed6bvTY/sJQ3XG2nYu83u+MXQbpq/Cr2g=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":110281,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf54WKCRA9TVsSAnZWagAAC10P/3t5uk+7k/7Oi52Dben9\n5DyE3soKB0rhQDatJ161Lqq37FhFMlXOF/0fkjB2ty+DwSfBKmK6yAkPVSZu\n5lmAweSWnutQCU1dK6aSsPMKrsHV0z+7ymNFLmHcYIj2AYnz5L2MmlVwkzT/\nVtjbx6DyP5NfAjS4IHSB+EOBnPNiAgtVtBl1V6MFTNWGy6ynyiuJ/8WFcUYy\n3twNBuog2aCrCjWRwfs3qf1FhPVdGI4IqwV68ZmCe19RDr1DwFw4Vxd3UNZv\n48IK9f+fguR2aDOY6RjHdDqrIxCMRxqBiT9w9V1UnSHRNfwYE9my761mSyLI\n6uvtcnJpFd2qUDpaqSKlO9fGQceq0OlPC/Tcp0j9GWNQfBexf7wsCrvfnmTc\nbsvR8ze7J0daliQhDFu7vxjnzMw6j+YTt8fptehNCuyZQplWgVNfbqVYGx+R\n1WWWcm1WvuXk3lK/lPdatJQVnomWy9WDoEfeebnaypGPIWg13zMClSXB6w3D\nbiyB9V7HZhTTv0MmsQSa6/cWOVzJbsAN+HYd8qNdpa05nPpu1xo25Vw16cDH\nL9TEvGR3tKyVGtwMn4PqWxa8bgd33ZlA27/Z68N+bC9ALQnaPWDOaFS1NXeG\nLX2vH+4vGDfc5v+zPP2w3RdF2UxdpJILBFUpTq9FsGAFAL3vW6MKmb9T6Ejm\nr15l\r\n=NM4r\r\n-----END PGP SIGNATURE-----\r\n"},"main":"src/cashaddr.js","name":"cashaddrjs","author":{"name":"Emilio Almansi"},"readme":"# CashAddr.js: The new Bitcoin Cash address format for Node.js and web browsers.\n\n[![Build Status](https://travis-ci.org/ealmansi/cashaddrjs.svg?branch=master)](https://travis-ci.org/ealmansi/cashaddrjs) [![Coverage Status](https://coveralls.io/repos/github/ealmansi/cashaddrjs/badge.svg?branch=master)](https://coveralls.io/github/ealmansi/cashaddrjs?branch=master)\n\n[![NPM](https://nodei.co/npm/cashaddrjs.png?downloads=true)](https://nodei.co/npm/cashaddrjs/)\n\nJavaScript implementation for the new CashAddr address format for Bitcoin Cash.\n\nCompliant with the original CashAddr [specification](https://github.com/Bitcoin-UAHF/spec/blob/master/cashaddr.md) which improves upon [BIP 173](https://github.com/bitcoin/bips/blob/master/bip-0173.mediawiki).\n\n*Note:* This is a JavaScript implementation of the CashAddr format specification. If you are looking for a general purpose Bitcoin Cash address translation library, check out the easy-to-use and well-tested [BchAddr.js](https://github.com/ealmansi/bchaddrjs).\n\n## Installation\n\n### Using NPM\n\n```bsh\n$ npm install --save cashaddrjs\n```\n\n### Using Bower\n\n```bsh\n$ bower install --save cashaddrjs\n```\n\n### Manually\n\nYou may also download the distribution file manually and place it within your third-party scripts directory: [dist/cashaddrjs-0.4.1.min.js](https://unpkg.com/cashaddrjs@0.4.1/dist/cashaddrjs-0.4.1.min.js).\n\n## Usage\n\n### In Node.js\n\n```javascript\nconst cashaddr = require('cashaddrjs');\nconst address = 'bitcoincash:qpm2qsznhks23z7629mms6s4cwef74vcwvy22gdx6a';\nconst { prefix, type, hash } = cashaddr.decode(address);\nconsole.log(prefix); // 'bitcoincash'\nconsole.log(type); // 'P2PKH'\nconsole.log(hash); // Uint8Array [ 118, 160, ..., 115 ]\nconsole.log(cashaddr.encode(prefix, type, hash)); // 'bitcoincash:qpm2qsznhks23z7629mms6s4cwef74vcwvy22gdx6a'\n```\n\n*Note:* This is a JavaScript implementation of the CashAddr format specification. If you are looking for an easy-to-use and well-tested library to translate between different formats, check out [BchAddr.js](https://github.com/ealmansi/bchaddrjs).\n\n### Browser\n\n#### Script Tag\n\nYou may include a script tag in your HTML and the `cashaddr` module will be defined globally on subsequent scripts.\n\n```html\n<html>\n  <head>\n    ...\n    <script src=\"https://unpkg.com/cashaddrjs@0.4.1/dist/cashaddrjs-0.4.1.min.js\"></script>\n  </head>\n  ...\n</html>\n```\n\n## Documentation\n\n### Generate and Browse Locally\n\n```bsh\n$ npm run docs\n```\n\n### Online\n\nBrowse automatically generated jsdocs [online](https://cdn.rawgit.com/ealmansi/cashaddrjs/master/docs/index.html).\n","license":"MIT","scripts":{"docs":"jsdoc -d docs src/cashaddr.js","lint":"eslint webpack.config.js {src,test}/**/*.js","test":"nyc --reporter=html --reporter=text mocha","build":"webpack","clean":"shx rm -rf dist/ docs/","readme":"mustache package.json README.tpl.md > README.md","pretest":"yarn lint","coveralls":"nyc report --reporter=text-lcov | coveralls","preversion":"yarn test && yarn clean && yarn build && yarn docs","postversion":"yarn readme && git add -A README.md dist docs && git push --tags && yarn publish . --tag $npm_package_version && git push"},"_npmUser":{"name":"ealmansi","email":"ealmansi@gmail.com"},"homepage":"https://github.com/ealmansi/cashaddrjs#readme","keywords":["bitcoin","cash","cashaddr","address","format","node","browser"],"deprecated":"Use version 0.4.2","repository":{"url":"git+https://github.com/ealmansi/cashaddrjs.git","type":"git"},"description":"Bitcoin Cash cashaddr address format support for Node.js and web browsers.","directories":{},"licenseText":"MIT License\n\nCopyright (c) 2017-2020 Emilio Almansi\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","maintainers":[{"name":"ealmansi","email":"ealmansi@gmail.com"}],"dependencies":{"big-integer":"1.6.36"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"15.0.0","shx":"0.3.3","chai":"4.2.0","debug":"4.3.1","jsdoc":"3.6.3","mocha":"8.2.1","eslint":"6.2.2","webpack":"5.11.0","mustache":"3.0.1","coveralls":"3.0.9","random-js":"1.0.8","@babel/cli":"7.12.10","@babel/core":"7.12.10","webpack-cli":"4.3.0","babel-loader":"8.2.2","@babel/preset-env":"7.12.11"},"_npmOperationalInternal":{"tmp":"tmp/cashaddrjs_0.4.1_1609008522481_0.7969301504871014","host":"s3://npm-registry-packages"},"_id":"cashaddrjs@0.4.1","version":"0.4.1"}