md5-promised
v1.0.1
Published
Calculate MD5 in a promise framework
Downloads
106
Maintainers
Readme
md5-promised
Handle file hashing from the promise framework.
- Provide a hashEncoding or use the default 'hex'.
Getting Started
npm install md5-promised --saveExample hashing a the md5-promised index.js (v1.0.1)
var hash = require('md5-promised');
hash('md5-promised/index.js').then(function(md5) {
console.log('md5-promised hash is:', md5);//7980f46d7ca2160c68fcc72f6ad286fa
}).fail(function(err) {
console.log('Could not hash', err, err.stack);
});