{"name":"md5-hex","version":"5.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":{"types":"./index.d.ts","node":"./index.js","default":"./browser.js"},"engines":{"node":">=18"},"scripts":{"test":"xo && ava && tsd"},"keywords":["hash","crypto","md5","hex","buffer","browser"],"dependencies":{"blueimp-md5":"^2.19.0"},"devDependencies":{"@types/node":"^20.8.7","ava":"^5.3.1","tsd":"^0.29.0","xo":"^0.56.0"},"types":"./index.d.ts","gitHead":"17d1b1c645675a4518e543742e4d72626ac2b593","bugs":{"url":"https://github.com/sindresorhus/md5-hex/issues"},"homepage":"https://github.com/sindresorhus/md5-hex#readme","_id":"md5-hex@5.0.0","_nodeVersion":"18.17.1","_npmVersion":"9.2.0","dist":{"integrity":"sha512-18TKd0nxBzMLflLBSCM/I9n50izl7NQGuujgbKjVUs/9acY+a5uzpDUVd4wV130vaK67TzDnPin2gze88u+e4Q==","shasum":"adf422439d2b27a455e474b4aa522c7c382fa1c3","tarball":"http://registry-npm.ywwl.com/md5-hex/download/md5-hex-5.0.0.tgz","fileCount":6,"unpackedSize":4225,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCvO6mxoz8TEmkWg/C48iaNV64HeKv0Iv8RhWJ2iCxVtgIhAI2CQzbV7H3cQ3pSwAQPot8/Lqk7rJS4mw7StIjuIAqR"}],"size":2123,"noattachment":false,"key":"/md5-hex/-/md5-hex-5.0.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/md5-hex_5.0.0_1698001824294_0.4051713024970849"},"_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```sh\nnpm 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","publish_time":1698001824523,"_cnpm_publish_time":1698001824523,"dist-tags":{"latest":"5.0.0"}}