Package Exports
- md5-file
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (md5-file) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
md5-file

Simply return an
md5
sum of a given file. If using async version (by including callback), it will stream; successfully tested on files 4 GB+.
Installation
$ npm install md5-file
Test:
$ npm test
API
md5File(path, [callback])
var md5File = require('md5-file')
// sync (no callback)
md5File('./path/to/a_file') // '18e904aae79b5642ed7975c0a0074936'
// async/streamed (if using callback)
md5File('./path/to/a_file', function (error, sum) {
if (error) return console.log(error)
console.log(sum) // '18e904aae79b5642ed7975c0a0074936'
})
License
MIT