{"_id":"data-to-hash","_rev":"1-a48cd2303f28b79ec26bdf1abd44e863","name":"data-to-hash","dist-tags":{"latest":"0.0.1"},"versions":{"0.0.1":{"name":"data-to-hash","version":"0.0.1","description":"Calculates a given hash for given data","main":"dist/index.js","types":"dist/index.d.ts","repository":{"type":"git","url":"git@github.com:dimitarnestorov/file-to-hash.git"},"homepage":"https://github.com/dimitarnestorov/file-to-hash/tree/master/packages/data-to-hash","author":{"name":"Dimitar Nestorov","email":"opensource@dimitarnestorov.com"},"license":"MIT","engines":{"node":">=4.0.0"},"keywords":["data","string","buffer","checksum","hash","hex","base64","crypto"],"scripts":{"prepublishOnly":"yarn run build","build":"rimraf dist && tsc","watch":"rimraf dist && tsc -w"},"_id":"data-to-hash@0.0.1","dist":{"shasum":"aac80efbe845ed0f6f621fd5c904ebcf11da6fc9","integrity":"sha512-SkiAFcTWEVMXdYDtn+b84uTftA+n2VEiTiBlAh8DYR4VK8NMEPmSwo3aGmB5QV64SrfMgq6DhQhu2gXYIe94Sw==","tarball":"https://registry.npmjs.org/data-to-hash/-/data-to-hash-0.0.1.tgz","fileCount":6,"unpackedSize":1754,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcJpyBCRA9TVsSAnZWagAAxIwP/RZZLzpe3npb/oBFQlho\naZ5AO/xLAZ7HHhVoXPAUyKUKLWUtHsXusmhPfIFmSusLksuAT2SX3Qi1L9Wl\n2mLKd8K3jH+/Ttz0P5f+Bkgbw3siWsiiQp8rEdZcNWrDs3x8bl3oWtJAVnzg\nMRIrSJvnW3qy89hDFMLXGA8DyoWATlTM/6Xf5yLFSsbDh7bxmrmPZU3hU1XE\n1lmj8g1eggI6etzV4JzHdEaLAvc8kE7F5fkYqyOoF5Nmfn2Z0GYJvoLQRC2/\nb1m15NShcj5rUpj2alZSsLt1mqyp7oQlBMhcryanZFgjN/1vBhyrze4OXASP\nub3YDP+lpXSS7Y5b0zeadWh8deK/fHDRNrCCUvPV+/FornOGZnUKBZeOhLi+\ndJORZiwvmTskbrS6Zo4jSoZhYmTk5d0VGs6yjVn43oFMOZpBjM2P5XChpoa8\n9Q4kUsbooYJsSgf0iKiVye5o+g6xq3KOkrk7B8/DpopVhHibLsP9bymXR+cw\neuWbkN9mqw1B77dxOyWKDk5UZhhmdGmWULh+9qE0i1x4+1UuRKtwB4ChRR8o\n+LDSyjm2FEWUeD2IYpXtgwg7mKiYKHDLTC+Ap4dydHuxynHDborg5yqkl5u5\nqPnim5obVhnmJLVr2Cx5Xzunk/qKsPeQoAB6tv1sNukJjEcfarkrwhVzs4PY\nmUGj\r\n=bf/X\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAjZZ6vCaUeTiiomwM9Dv6ZoNtM/Ltec9Icrb+DS7RNGAiAFTN1FQRAXuKeSJDhWg65GNvZd4UQlJV7lbtBfYmBe+g=="}]},"maintainers":[{"name":"dimitarnestorov","email":"opensource@dimitarnestorov.com"}],"_npmUser":{"name":"dimitarnestorov","email":"opensource@dimitarnestorov.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/data-to-hash_0.0.1_1546034304583_0.9317121571384095"},"_hasShrinkwrap":false}},"time":{"created":"2018-12-28T21:58:24.413Z","0.0.1":"2018-12-28T21:58:24.685Z","modified":"2022-04-28T04:58:58.726Z"},"maintainers":[{"name":"dimitarnestorov","email":"opensource@dimitarnestorov.com"}],"description":"Calculates a given hash for given data","homepage":"https://github.com/dimitarnestorov/file-to-hash/tree/master/packages/data-to-hash","keywords":["data","string","buffer","checksum","hash","hex","base64","crypto"],"repository":{"type":"git","url":"git@github.com:dimitarnestorov/file-to-hash.git"},"author":{"name":"Dimitar Nestorov","email":"opensource@dimitarnestorov.com"},"license":"MIT","readme":"# data-to-hash\n\n> Calculates a given hash of a given buffer/string\n\n## Install\n\nUsing yarn:\n```sh\nyarn add data-to-hash\n```\n\nor using npm:\n```sh\nnpm install data-to-hash\n```\n\n## Usage\n\n```javascript\nconst fs = require('fs')\nconst dataToHash = require('data-to-hash')\n\nconst buffer = fs.readFileSync('/path/to/file')\n\nconst hash = dataToHash('sha256', buffer)\n```\n","readmeFilename":"README.md"}