{"_id":"md5-hex","_rev":"145272","name":"md5-hex","description":"Create a MD5 hash with hex encoding","dist-tags":{"latest":"4.0.0"},"maintainers":[{"name":"sindresorhus","email":""}],"time":{"modified":"2021-06-03T11:29:19.000Z","created":"2015-05-23T16:56:56.273Z","4.0.0":"2021-05-03T10:24:55.111Z","3.0.1":"2019-07-11T17:18:37.451Z","3.0.0":"2019-05-04T10:49:46.981Z","2.0.0":"2017-01-13T12:29:44.424Z","1.3.0":"2016-04-12T14:26:37.187Z","1.2.1":"2016-01-13T18:43:59.000Z","1.2.0":"2015-12-24T13:18:54.160Z","1.1.0":"2015-09-22T06:26:36.221Z","1.0.2":"2015-06-04T20:30:23.576Z","1.0.1":"2015-05-23T17:13:21.209Z","1.0.0":"2015-05-23T16:56:56.273Z"},"users":{},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"repository":{"type":"git","url":"git+https://github.com/sindresorhus/md5-hex.git"},"versions":{"4.0.0":{"name":"md5-hex","version":"4.0.0","description":"Create a MD5 hash with hex encoding","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/md5-hex.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":{"node":"./index.js","default":"./browser.js"},"engines":{"node":">=12"},"scripts":{"test":"xo && ava && tsd"},"keywords":["hash","crypto","md5","hex","buffer","browser"],"dependencies":{"blueimp-md5":"^2.18.0"},"devDependencies":{"@types/node":"^15.0.1","ava":"^3.15.0","tsd":"^0.14.0","xo":"^0.39.1"},"gitHead":"199598328d4d11b938f86a9ba9b82dc0796c8331","bugs":{"url":"https://github.com/sindresorhus/md5-hex/issues"},"homepage":"https://github.com/sindresorhus/md5-hex#readme","_id":"md5-hex@4.0.0","_nodeVersion":"16.0.0","_npmVersion":"7.10.0","dist":{"shasum":"9327bd8d2868b05b9eaa8691f196ea05e34a03d3","size":2103,"noattachment":false,"key":"/md5-hex/-/md5-hex-4.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/md5-hex/download/md5-hex-4.0.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/md5-hex_4.0.0_1620037494983_0.4114271487738417"},"_hasShrinkwrap":false,"publish_time":1620037495111,"_cnpm_publish_time":1620037495111},"3.0.1":{"name":"md5-hex","version":"3.0.1","description":"Create a MD5 hash with hex encoding","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/md5-hex.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=8"},"scripts":{"test":"xo && ava && tsd"},"keywords":["hash","crypto","md5","hex","buffer","browser"],"dependencies":{"blueimp-md5":"^2.10.0"},"devDependencies":{"@types/node":"^12.6.2","ava":"^2.2.0","tsd":"^0.7.4","xo":"^0.24.0"},"browser":"browser.js","gitHead":"cd4a994d38bd9923b59e569f44d7c1b1e22921bf","bugs":{"url":"https://github.com/sindresorhus/md5-hex/issues"},"homepage":"https://github.com/sindresorhus/md5-hex#readme","_id":"md5-hex@3.0.1","_nodeVersion":"10.16.0","_npmVersion":"6.9.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"be3741b510591434b2784d79e556eefc2c9a8e5c","size":2182,"noattachment":false,"key":"/md5-hex/-/md5-hex-3.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/md5-hex/download/md5-hex-3.0.1.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/md5-hex_3.0.1_1562865516804_0.14543556697398974"},"_hasShrinkwrap":false,"publish_time":1562865517451,"_cnpm_publish_time":1562865517451},"3.0.0":{"name":"md5-hex","version":"3.0.0","description":"Create a MD5 hash with hex encoding","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/md5-hex.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=8"},"scripts":{"test":"xo && ava && tsd"},"keywords":["hash","crypto","md5","hex","buffer","browser"],"dependencies":{"md5-o-matic":"^0.1.1"},"devDependencies":{"@types/node":"^12.0.0","ava":"^1.4.1","tsd":"^0.7.2","xo":"^0.24.0"},"browser":"browser.js","gitHead":"7894ab1da00e8a32061c20d19f56fd5a84e8ae80","bugs":{"url":"https://github.com/sindresorhus/md5-hex/issues"},"homepage":"https://github.com/sindresorhus/md5-hex#readme","_id":"md5-hex@3.0.0","_nodeVersion":"8.16.0","_npmVersion":"6.9.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"96cf5c62cedea41e04124b9473ef7481db6de5fb","size":2204,"noattachment":false,"key":"/md5-hex/-/md5-hex-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/md5-hex/download/md5-hex-3.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/md5-hex_3.0.0_1556966986885_0.08163180072785758"},"_hasShrinkwrap":false,"publish_time":1556966986981,"_cnpm_publish_time":1556966986981},"2.0.0":{"name":"md5-hex","version":"2.0.0","description":"Create a MD5 hash with hex encoding","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/md5-hex.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=4"},"scripts":{"test":"xo && ava"},"files":["index.js","browser.js"],"keywords":["hash","crypto","md5","hex","buffer","browser","browserify"],"dependencies":{"md5-o-matic":"^0.1.1"},"devDependencies":{"ava":"*","xo":"*"},"browser":"browser.js","gitHead":"5d8f3a88b2de9bfdf7e4f07f253dd88c102814df","bugs":{"url":"https://github.com/sindresorhus/md5-hex/issues"},"homepage":"https://github.com/sindresorhus/md5-hex#readme","_id":"md5-hex@2.0.0","_shasum":"d0588e9f1c74954492ecd24ac0ac6ce997d92e33","_from":".","_npmVersion":"2.15.11","_nodeVersion":"4.6.2","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"d0588e9f1c74954492ecd24ac0ac6ce997d92e33","size":2003,"noattachment":false,"key":"/md5-hex/-/md5-hex-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/md5-hex/download/md5-hex-2.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/md5-hex-2.0.0.tgz_1484310584188_0.43361427285708487"},"directories":{},"publish_time":1484310584424,"_cnpm_publish_time":1484310584424,"_hasShrinkwrap":false},"1.3.0":{"name":"md5-hex","version":"1.3.0","description":"Create a MD5 hash with hex encoding","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/md5-hex.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"browser":"browser.js","engines":{"node":">=0.10.0"},"scripts":{"test":"xo && ava"},"files":["index.js","browser.js"],"keywords":["hash","crypto","md5","hex","buffer","browser","browserify"],"dependencies":{"md5-o-matic":"^0.1.1"},"devDependencies":{"ava":"*","xo":"*"},"gitHead":"273d9c659a29e4cd53512f526282afd5ac1c1413","bugs":{"url":"https://github.com/sindresorhus/md5-hex/issues"},"homepage":"https://github.com/sindresorhus/md5-hex#readme","_id":"md5-hex@1.3.0","_shasum":"d2c4afe983c4370662179b8cad145219135046c4","_from":".","_npmVersion":"2.15.0","_nodeVersion":"4.4.2","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"d2c4afe983c4370662179b8cad145219135046c4","size":1977,"noattachment":false,"key":"/md5-hex/-/md5-hex-1.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/md5-hex/download/md5-hex-1.3.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/md5-hex-1.3.0.tgz_1460471196734_0.9732175024691969"},"directories":{},"publish_time":1460471197187,"_cnpm_publish_time":1460471197187,"_hasShrinkwrap":false},"1.2.1":{"name":"md5-hex","version":"1.2.1","description":"Create a MD5 hash with hex encoding","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/md5-hex.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"browser":"browser.js","engines":{"node":">=0.10.0"},"scripts":{"test":"xo && ava"},"files":["index.js","browser.js"],"keywords":["hash","crypto","md5","hex","buffer","browser","browserify"],"dependencies":{"md5-o-matic":"^0.1.1"},"devDependencies":{"ava":"*","xo":"*"},"gitHead":"93b11aa24c4c3716da81b54570e4149232600189","bugs":{"url":"https://github.com/sindresorhus/md5-hex/issues"},"homepage":"https://github.com/sindresorhus/md5-hex#readme","_id":"md5-hex@1.2.1","_shasum":"f6d12928794aedda344225644ae23e12af817001","_from":".","_npmVersion":"3.5.3","_nodeVersion":"4.2.4","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"f6d12928794aedda344225644ae23e12af817001","size":1964,"noattachment":false,"key":"/md5-hex/-/md5-hex-1.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/md5-hex/download/md5-hex-1.2.1.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"publish_time":1452710639000,"_cnpm_publish_time":1452710639000,"_hasShrinkwrap":false},"1.2.0":{"name":"md5-hex","version":"1.2.0","description":"Create a MD5 hash with hex encoding","license":"MIT","repository":{"type":"git","url":"https://github.com/sindresorhus/md5-hex"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"browser":"browser.js","engines":{"node":">=0.10.0"},"scripts":{"test":"xo && ava"},"files":["index.js","browser.js"],"keywords":["hash","crypto","md5","hex","buffer","browser","browserify"],"dependencies":{"md5-o-matic":"^0.1.1"},"devDependencies":{"ava":"*","xo":"*"},"gitHead":"e1cf3546c29d3ea21ae8b4e9c77e2453703f6681","bugs":{"url":"https://github.com/sindresorhus/md5-hex/issues"},"homepage":"https://github.com/sindresorhus/md5-hex","_id":"md5-hex@1.2.0","_shasum":"60366a6d7c23f8241947e14ae1b7358efdc0e200","_from":".","_npmVersion":"2.14.12","_nodeVersion":"4.2.4","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"60366a6d7c23f8241947e14ae1b7358efdc0e200","size":1907,"noattachment":false,"key":"/md5-hex/-/md5-hex-1.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/md5-hex/download/md5-hex-1.2.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"publish_time":1450963134160,"_cnpm_publish_time":1450963134160,"_hasShrinkwrap":false},"1.1.0":{"name":"md5-hex","version":"1.1.0","description":"Create a MD5 hash with hex encoding","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/md5-hex.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"browser":"browser.js","engines":{"node":">=0.10.0"},"scripts":{"test":"xo && ava"},"files":["index.js","browser.js"],"keywords":["hash","crypto","md5","hex","buffer","browser","browserify"],"dependencies":{"md5-o-matic":"^0.1.1"},"devDependencies":{"ava":"*","xo":"*"},"gitHead":"9722ed0e0b13d5b7dc0383308b494ccae3160faa","bugs":{"url":"https://github.com/sindresorhus/md5-hex/issues"},"homepage":"https://github.com/sindresorhus/md5-hex#readme","_id":"md5-hex@1.1.0","_shasum":"d107074c4ee81cbca7f2b61150669dce38058080","_from":".","_npmVersion":"2.14.3","_nodeVersion":"4.1.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"d107074c4ee81cbca7f2b61150669dce38058080","size":1727,"noattachment":false,"key":"/md5-hex/-/md5-hex-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/md5-hex/download/md5-hex-1.1.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"publish_time":1442903196221,"_cnpm_publish_time":1442903196221,"_hasShrinkwrap":false},"1.0.2":{"name":"md5-hex","version":"1.0.2","description":"Create a MD5 hash with hex encoding","license":"MIT","repository":{"type":"git","url":"https://github.com/sindresorhus/md5-hex"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"node test.js"},"files":["index.js"],"keywords":["hash","crypto","md5","hex","buffer"],"devDependencies":{"ava":"0.0.4"},"gitHead":"d8f6e8b27ff37fdcb8708c2c596e6b4fcf96bebf","bugs":{"url":"https://github.com/sindresorhus/md5-hex/issues"},"homepage":"https://github.com/sindresorhus/md5-hex","_id":"md5-hex@1.0.2","_shasum":"6dba1264bced751e902d56e2ca32c3bbfa31eaa9","_from":".","_npmVersion":"2.10.1","_nodeVersion":"0.12.4","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"6dba1264bced751e902d56e2ca32c3bbfa31eaa9","size":1626,"noattachment":false,"key":"/md5-hex/-/md5-hex-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/md5-hex/download/md5-hex-1.0.2.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"publish_time":1433449823576,"_cnpm_publish_time":1433449823576,"_hasShrinkwrap":false},"1.0.1":{"name":"md5-hex","version":"1.0.1","description":"Create a MD5 hash with hex encoding","license":"MIT","repository":{"type":"git","url":"https://github.com/sindresorhus/md5-hex"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"node test.js"},"files":["index.js"],"keywords":["hash","crypto","md5","hex","buffer"],"devDependencies":{"ava":"0.0.4"},"gitHead":"22be3374dc1f7e9e4149857db71736d04f3b90ee","bugs":{"url":"https://github.com/sindresorhus/md5-hex/issues"},"homepage":"https://github.com/sindresorhus/md5-hex","_id":"md5-hex@1.0.1","_shasum":"72d969a17770849d23dac6d8d903c21630d33ffa","_from":".","_npmVersion":"2.10.1","_nodeVersion":"0.12.4","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"72d969a17770849d23dac6d8d903c21630d33ffa","size":1574,"noattachment":false,"key":"/md5-hex/-/md5-hex-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/md5-hex/download/md5-hex-1.0.1.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"publish_time":1432401201209,"_cnpm_publish_time":1432401201209,"_hasShrinkwrap":false},"1.0.0":{"name":"md5-hex","version":"1.0.0","description":"Create a MD5 hash with hex encoding","license":"MIT","repository":{"type":"git","url":"https://github.com/sindresorhus/md5-hex"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"node test.js"},"files":["index.js"],"keywords":["hash","crypto","md5","hex","buffer"],"devDependencies":{"ava":"0.0.4"},"gitHead":"24537065c3d0063c796669f2921429805554ab5b","bugs":{"url":"https://github.com/sindresorhus/md5-hex/issues"},"homepage":"https://github.com/sindresorhus/md5-hex","_id":"md5-hex@1.0.0","_shasum":"b174a70432e515ad63c8ed7d6bc36f600f15526a","_from":".","_npmVersion":"2.10.1","_nodeVersion":"0.12.4","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"b174a70432e515ad63c8ed7d6bc36f600f15526a","size":1537,"noattachment":false,"key":"/md5-hex/-/md5-hex-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/md5-hex/download/md5-hex-1.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"publish_time":1432400216273,"_cnpm_publish_time":1432400216273,"_hasShrinkwrap":false}},"readme":"# md5-hex\n\n> Create a MD5 hash with hex encoding\n\n*Please don't use MD5 hashes for anything sensitive!*\n\nWorks in the browser too, when used with a bundler like Webpack, Rollup, Browserify.\n\nCheckout [`hasha`](https://github.com/sindresorhus/hasha) if you need something more flexible.\n\n## Install\n\n```\n$ npm install md5-hex\n```\n\n## Usage\n\n```js\nimport fs from 'node:fs';\nimport md5Hex from 'md5-hex';\n\nconst buffer = fs.readFileSync('unicorn.png');\n\nmd5Hex(buffer);\n//=> '1abcb33beeb811dca15f0ac3e47b88d9'\n```\n\n## API\n\n### md5Hex(data)\n\n#### data\n\nType: `Buffer | string | Array<Buffer | string>`\n\nPrefer buffers as they're faster to hash, but strings can be useful for small things.\n\nPass an array instead of concatenating strings and/or buffers. The output is the same, but arrays do not incur the overhead of concatenation.\n\n## Related\n\n- [crypto-hash](https://github.com/sindresorhus/crypto-hash) - Tiny hashing module that uses the native crypto API in Node.js and the browser\n- [hasha](https://github.com/sindresorhus/hasha) - Hashing made simple\n- [hash-obj](https://github.com/sindresorhus/hash-obj) - Get the hash of an object\n","_attachments":{},"homepage":"https://github.com/sindresorhus/md5-hex#readme","bugs":{"url":"https://github.com/sindresorhus/md5-hex/issues"},"license":"MIT"}