simple-md5

1.2.4 • Public • Published

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);

/simple-md5/

    Package Sidebar

    Install

    npm i simple-md5

    Weekly Downloads

    0

    Version

    1.2.4

    License

    ISC

    Unpacked Size

    2.61 kB

    Total Files

    5

    Last publish

    Collaborators

    • comlog.gmbh