{"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":{"integrity":"sha512-di38zHPn4Tz8LCb5Lz8SpLb/20Hv23aPXpF4Bq1mR5r9JuCZQ/JpcDUxFfZF9Ur5GiUvqS5NQOkR+fm5cYZ0IQ==","shasum":"9327bd8d2868b05b9eaa8691f196ea05e34a03d3","tarball":"http://registry-npm.ywwl.com/md5-hex/download/md5-hex-4.0.0.tgz","fileCount":6,"unpackedSize":4189,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgj893CRA9TVsSAnZWagAAh+UP/27+7HiW+tNIEuDxCS61\naFV5a27aW3I59+sIKbfcVKZrao/bLBgBZna9EG/3OTL//MBwmTYU2tkLXWvy\n/74zRqFvoyB7p7PKCNog9rIGCvgrK+O5+Yk6nkikVo8ZmriPrckxi6LHHNdb\noVobDXRdFScAr/QMV6tVMAMHn8haRvXuKU9jFOp2M1LOdkD7F8yCDh8be9Fv\nZZEYslISvrd74uTLmw1np5LIsP4qoNJinCTj/hGgpKK8HpwZAMxAkGZbkTI1\ncOEPv5jk9yfSEU+iOt23bmA8mYA+Cip23hz0/9Meu/sm//jnnIXmuX2iThe+\noNhoVedqEvyPoIvbMgWofB7s9OLqz8V1GIiP6DkG7Alm+TWb6DCUy32gqvVb\nUQ0K7YvjI+HCnxvor7tcG3EVM4qziXFnJiKvnw36bckHRJYcFZiNAD2reexh\n53wSZ1AcGjFM+DPpBEGyrcViGnsInNSL2SHetSq1I5770nuMipU+3N0FJzNg\nHBFiePN7+PBGaV5BLnOs+y7NmNM/pN/JlGZiK9UUZmXZpfEFB8e6ZE/+2jX7\nvIyd32PpfZjxjr5ohNjWMhYWd9t4jyXjaNHirhBxdLRwV/bVZvOWBbaoVCz3\npE804eg6/Zh5Ttk2RERvYsL4brYxy7+5UzftMhNFX4LqgsENbCJyjtqppE8U\nCdM8\r\n=5o+t\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCFiHGwG5jj7R/laZPyUPe+Vufv74kOZXxG49pmWMVtSAIgG56aCxFpg11q2AEN8Nmiren0O8zKy6377E4IHqozWIk="}],"size":2103,"noattachment":false,"key":"/md5-hex/-/md5-hex-4.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_4.0.0_1620037494983_0.4114271487738417"},"_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":1620037495111,"_cnpm_publish_time":1620037495111,"dist-tags":{"latest":"5.0.0"}}