{"_id":"@cjser/md5-hex__v4_0_0","name":"@cjser/md5-hex__v4_0_0","dist-tags":{"latest":"4.0.0-cjser.2"},"versions":{"4.0.0-cjser.2":{"name":"@cjser/md5-hex__v4_0_0","version":"4.0.0-cjser.2","description":"Create a MD5 hash with hex encoding","license":"MIT","repository":{"type":"git","url":"https://code.moenext.com/3rdeye/cjser.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":{"require":"./dist-cjser/index.cjs","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"},"main":"./dist-cjser/index.cjs","cjser":{"sourceVersion":"4.0.0","cjserVersion":2,"original":{"name":"md5-hex","version":"4.0.0","exports":{"node":"./index.js","default":"./browser.js"},"repository":"sindresorhus/md5-hex","dependencies":{"blueimp-md5":"^2.18.0"},"files":["index.js","index.d.ts","browser.js"],"scripts":{"test":"xo && ava && tsd"}}},"_id":"@cjser/md5-hex__v4_0_0@4.0.0-cjser.2","gitHead":"a4bef54d7d22d3d9a6b84528457938d84cd65fe7","_nodeVersion":"20.14.0","_npmVersion":"10.7.0","dist":{"integrity":"sha512-K1MNW8iZn3UHtAWJ9JPKCWEFVYyqq2I8qJsPgyhEOlT2lRBiKh3jCq9NrzElINfbtZCyy5ANB3Iq/r1FEsUKYA==","shasum":"f3193262254f356f42410dd73f6c1e52fe191a27","tarball":"https://registry.npmjs.org/@cjser/md5-hex__v4_0_0/-/md5-hex__v4_0_0-4.0.0-cjser.2.tgz","fileCount":7,"unpackedSize":7020,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQC4s4RSW7mFR6KnBu86zfSwXLGYmw1yk9q8bOS0krF9WgIgPB7UTm8cvgB+nPpOAUvc9SQX1dxUAV471Q9R4jTBZGA="}]},"_npmUser":{"name":"nanahira","email":"nanahira@momobako.com"},"directories":{},"maintainers":[{"name":"nanahira","email":"nanahira@momobako.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/md5-hex__v4_0_0_4.0.0-cjser.2_1778159037749_0.1779963016340702"},"_hasShrinkwrap":false}},"time":{"created":"2026-05-07T13:03:57.631Z","4.0.0-cjser.2":"2026-05-07T13:03:57.909Z","modified":"2026-05-07T13:03:58.136Z"},"maintainers":[{"name":"nanahira","email":"nanahira@momobako.com"}],"description":"Create a MD5 hash with hex encoding","keywords":["hash","crypto","md5","hex","buffer","browser"],"repository":{"type":"git","url":"https://code.moenext.com/3rdeye/cjser.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"license":"MIT","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\n## cjser\n\nThis package is a CommonJS-compatible build generated by cjser for projects that still need `require()` support. The source version matches the original npm package version, with a cjser prerelease suffix for this generated build.\nOriginal repository: https://github.com/sindresorhus/md5-hex\n","readmeFilename":"readme.md","_rev":"1-dddc3f51fc310c09e1b4e825b953de1f"}