{"_id":"convert-hex","_rev":"13-5c934f2f12fd084f509c11e2fa188096","name":"convert-hex","description":"Convert to/from hex string and array of bytes","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"convert-hex","version":"0.1.0","description":"Convert to/from hex string and array of bytes","keywords":["string","strings","convert","hex","bytes"],"devDependencies":{"chai":"~1.8.1","mocha":"1.*"},"repository":{"url":"https://github.com/cryptocoinjs/convert-hex","type":"git"},"main":"convert-hex.js","bugs":{"url":"https://github.com/cryptocoinjs/convert-hex/issues"},"_id":"convert-hex@0.1.0","dist":{"shasum":"08c04568922c27776b8a2e81a95d393362ea0b65","tarball":"https://registry.npmjs.org/convert-hex/-/convert-hex-0.1.0.tgz","integrity":"sha512-w20BOb1PiR/sEJdS6wNrUjF5CSfscZFUp7R9NSlXH8h2wynzXVEPFPJECAnkNylZ+cvf3p7TyRUHggDmrwXT9A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDG0w7w4V8QVNTx5u94u9cv2sG9NyzA51Hcbjb1QbZnqAIhAPGA+TQh3Vbm5KVzle8rBHd8Rz9jj+jDaazTtxQzHyKQ"}]},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"jp","email":"jprichardson@gmail.com"},"maintainers":[{"name":"jp","email":"jprichardson@gmail.com"}]}},"readme":"convert-hex\n===========\n\nJavaScript component to convert to/from hex strings and byte arrays.\n\nAMD/CommonJS compatible.\n\n\nInstall\n-------\n\n### Node.js/Browserify\n\n    npm install --save cryptocoin-convert-hex\n\n\n### Component\n\n    component install cryptocoin/convert-hex\n\n\n### Bower\n\n    bower install cryptocoin/convert-hex\n\n\n### Script\n\n```html\n<script src=\"/path/to/convert-hex.js\"></script>\n```\n\n\nUsage\n-----\n\n(if using script, the global is `convertHex`)\n\n### bytesToHex(bytes)\n\n```js\nvar convertHex = require('convert-hex')\n\nvar bytes = [0x34, 0x55, 0x1, 0xDF]\nconsole.log(convertHex.bytesToHex(bytes)) //\"345501df\"\n```\n\n\n### hexToBytes(hexStr)\n\n```js\nvar hex = \"34550122DF\" //\"0x\" prefix is optional\nconsole.dir(conv.hexToBytes(hex).join(',')) //'[52,85,1,34,223]'\n```\n\nCredits\n-------\n\nLoosely inspired by code from here: https://github.com/vbuterin/bitcoinjs-lib & CryptoJS\n\n\nLicense\n-------\n\n(MIT License)\n\nCopyright 2013, JP Richardson  <jprichardson@gmail.com>","maintainers":[{"name":"vbuterin","email":"vbuterin@gmail.com"},{"name":"midnightlightning","email":"boydb@midnightdesign.ws"},{"name":"sidazhang","email":"sidazhang89@gmail.com"},{"name":"jprichardson","email":"jprichardson@gmail.com"}],"time":{"modified":"2022-06-13T22:52:02.439Z","created":"2013-11-21T05:24:50.478Z","0.1.0":"2013-11-21T05:24:51.152Z"},"repository":{"url":"https://github.com/cryptocoinjs/convert-hex","type":"git"},"readmeFilename":"README.md","keywords":["string","strings","convert","hex","bytes"],"bugs":{"url":"https://github.com/cryptocoinjs/convert-hex/issues"},"users":{"temasm":true,"noopkat":true,"jgrl":true}}