{"name":"md5-file","main":"index.js","repository":{"type":"git","url":"git+https://github.com/roryrjb/md5-file.git"},"files":["index.js","promise.js"],"version":"3.2.1","description":"return an md5sum of a given file","keywords":["md5","md5sum","checksum"],"author":{"name":"Rory Bradford","email":"rory@dysfunctionalprogramming.com"},"license":"MIT","scripts":{"test":"standard && mocha"},"bin":{"md5-file":"index.js"},"devDependencies":{"mocha":"^2.4.5","standard":"^7.1.0"},"engines":{"node":">=4.5.0"},"gitHead":"e8201ed1bbf81827117cdedb18aa9610b257d0c0","bugs":{"url":"https://github.com/roryrjb/md5-file/issues"},"homepage":"https://github.com/roryrjb/md5-file#readme","_id":"md5-file@3.2.1","_npmVersion":"5.3.0","_nodeVersion":"8.3.0","_npmUser":{"name":"roryrjb","email":"rory@dysfunctionalprogramming.com"},"dist":{"integrity":"sha512-ZsQet7wCePf0SpHJv/uU/AjusAxFzSsxDhsybTNtVEAElDvg9GWYP3w6G+/6Fd/xkJLLUrDzHqBk+p1YcDJITQ==","shasum":"0e9ef8f61d4e1b0945ac01018648b6d7134f8ed4","tarball":"http://registry-npm.ywwl.com/md5-file/download/md5-file-3.2.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDyYivwbHI4yoD6CPfnpKmDWno/YxGq5EkO2Z8iVrJU2gIgKyk8b4aYFn+LtCCnD7Vz4LetocL2oGu6tCgjijCy5tQ="}],"size":2316,"noattachment":false,"key":"/md5-file/-/md5-file-3.2.1.tgz"},"maintainers":[{"email":"linus@folkdatorn.se","name":"linusu"},{"email":"rory@dysfunctionalprogramming.com","name":"roryrjb"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/md5-file-3.2.1.tgz_1502781624717_0.039550533751025796"},"directories":{},"readme":"# MD5 file\n\nGet the MD5-sum of a given file, with low memory usage, even on huge files.\n\n## Installation\n\n```sh\nnpm install --save md5-file\n```\n\n## Usage\n\n### As a module\n\n```js\nconst md5File = require('md5-file')\n\n/* Async usage */\nmd5File('LICENSE.md').then((hash) => {\n  console.log(`The MD5 sum of LICENSE.md is: ${hash}`)\n})\n\n/* Sync usage */\nconst hash = md5File.sync('LICENSE.md')\nconsole.log(`The MD5 sum of LICENSE.md is: ${hash}`)\n```\n\n### As a command line tool\n\n```sh\n$ md5-file LICENSE.md\nad1faf9381e43c471dc381c17a4ee4b6\n```\n\n## API\n\n### `md5File(path: string) => Promise<string>`\n\nAsynchronously get the MD5-sum of the file at `path`.\n\nReturns a [`Promise`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise) that will be resolved with a string containing the MD5-sum.\n\n### `md5File.sync(path: string) => string`\n\nSynchronously get the MD5-sum of the file at `path`.\n\n### License\n\nMIT\n","publish_time":1502781625580,"_cnpm_publish_time":1502781625580,"dist-tags":{"latest":"5.0.0"}}