simple-md5
v1.2.5
Published
MD5 from file or string
Downloads
18
Readme
Sync version of Request
Generate MD5 from string or file. Supports synchron method.
Installation
$ npm install -s simple-md5
Simple:
var SimpleMD5 = require('simple-md5');
console.info(SimpleMD5('test'));
From a file:
var SimpleMD5 = require('simple-md5');
SimpleMD5.file('/path/to/file', function(err, hash) {
if (!err) console.error(err);
else console.info(hash);
});
From a file synchron:
var SimpleMD5 = require('simple-md5');
var hash = SimpleMD5.fileSync('/path/to/file');
console.info(hash);