{"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":{"integrity":"sha512-BUiRtTtV39LIJwinWBjqVsU9xhdnz7/i889V859IBFpuqGAj6LuOvHv5XLbgZ2R7ptJoJaEcxkv88/h25T7Ciw==","shasum":"be3741b510591434b2784d79e556eefc2c9a8e5c","tarball":"http://registry-npm.ywwl.com/md5-hex/download/md5-hex-3.0.1.tgz","fileCount":6,"unpackedSize":4243,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdJ29uCRA9TVsSAnZWagAAcLgP/Rx1s5PsR3VQ6IwVUZy9\nmQev8ydT03TOXxwYOVvBUSFa261ChfQNLQMPM3wPd4d1oIKD0aBpRBcyfTTC\n7gN5Isnr83Tmk6l6za2dwfozG5VFxRZaTuyJEQS17p8UTPywqE4/D9ll0E8X\n7yvwBc579MAt0/n+ctTo3Ory/5GTSfbEZ7a0P8WBE3uPq1YW2lMALtSJSvQZ\ndmr0skuPYQXIZvljuEpccGSMilyFh3kYHvSW56hN9KuLaW0AOL+oqWtro8Ec\nZvaJ7y0FAM5UKY6JsRdqNFnd0yA4To6N3dQHDtTgxadAg9O6LnfLdCBROTJ0\n1CqLJfbfumus8QwEfJgnDnCgQ32yKMTU/rZkVbWe5kN1DgSiHK4Ka21heEzN\n2HVkKGBWijCkCCAF49nywdcocSWA/FZZkwUhmpqa8JM2471W/F/BN7T2hxZ+\nsbQfE/D1vyRu4LLQvBrciGDhsK6Ls7SNJC3Z98Z4H37muiNMyrWHV+ZdLTWS\nlHti5xOZRUGkYuj8kQ51qj9ktDgiyiuAXMfG472DWgzYXa12qPaXwWgKh4d+\njE7JKo+yq0N+FcPw+d2T8gThSmyRALHppgs8cG08o5A7AOc9RQSmHBkLLK4E\nRSKejYOflqRQn+YecLxit/mxEKWBs2kXwECFFQwMXCkyFkuxDJiRQdagJ1Ue\ntVVy\r\n=8eHg\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIH7Z+Jrimr0xvsHv1aKpWetub2GJt8h6uoxl8t4taRExAiEA5gFEOXbF4UYDryrCqlVGD710vhEZwUBNpk/gqHnDje8="}],"size":2182,"noattachment":false,"key":"/md5-hex/-/md5-hex-3.0.1.tgz"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/md5-hex_3.0.1_1562865516804_0.14543556697398974"},"_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":1562865517451,"_cnpm_publish_time":1562865517451,"dist-tags":{"latest":"5.0.0"}}