{"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":{"integrity":"sha512-uA+EX5IV1r5lKBJecwTSec3k6xl4ziBUZihRiOpOHCeHjKA0ai6+eImamXQy/cI3Qep5mQgFTeJld9tcwdBNFw==","shasum":"96cf5c62cedea41e04124b9473ef7481db6de5fb","tarball":"http://registry-npm.ywwl.com/md5-hex/download/md5-hex-3.0.0.tgz","fileCount":6,"unpackedSize":4301,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJczW5LCRA9TVsSAnZWagAA4m0P/1a63iO3vsAmLxSwZwwY\n7YaNFxMF0+qF7VBZbSBLZ9cc7/vkVOxe0OURW/JJ1dIW8n7KIQ7AX8JmFBKQ\nNeiKMnyq/UTsYeV3raaZvCu+wqknVAOxoOareBIxPt9Rtm8lgrSEFAne9W68\n9PyQNgP7FXhjckgQK6mwAdK3OPCF+O3it9CvpQcJNmCJKDXW+wu7igY1QWNV\nu8bBJBXBW5IQ1uFiE1bzD2XkEex8C5qup/IUJ8c5eQfaIxtOUb5ZDS5IIKjF\nFl/rwyr73wBu3ZlW55ek8y407X4aZ2wLg9deQDfgz5WJew2520L0XA0ZevZ3\nNPOX4dqomA+tUUm65vD1StZJFGtIM1hw6ypN40rri/X8TaCKvTJzXZpBLqcD\nY3+JkYxhHi9wtoqL4zYF2KLwPn1TK9UifX/t/wLf6e3KK95d1Eyuw5IAvWk7\nMCj/ub6KnmEUXo+SSPIeQjjEbct6MGPl7ZWOPAoAabGe91+b7rF0G0ClFFE0\nY1niFOVJmHyr4egypXGRmWaaFLN3jiCVvRPknlA7TTUZPf38Cj771xr6ypgH\nPHKaAsW9Q6dCZHxXFhpthm6uYF2wubO2SgNdrUOGupYimq0VAs2pc+J9Bkgw\nwcSWCNZ2efPYDWGFT0ltca6US+ZJjgtTVjqoXJxEOuygmN8m6HIwlAf4MFzG\n9O10\r\n=9sJb\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDS+Z6xst9I7m5nbNAqkGZIiCiSgJvP5COiKpE8XdI42AiEA2QD+YdIkM9+RM2AdM2NN2ZayfF+y64xz7wIOI4fA5Ps="}],"size":2204,"noattachment":false,"key":"/md5-hex/-/md5-hex-3.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/md5-hex_3.0.0_1556966986885_0.08163180072785758"},"_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":1556966986981,"_cnpm_publish_time":1556966986981,"dist-tags":{"latest":"5.0.0"}}