1.0.1 • Published 5 years ago

hash-for-file v1.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
5 years ago

Welcome to MD-5 Hash for file!

Create Md5 hash for given file. This module uses native crypto module of node.js

Installation

npm install --save hash-for-file

Usage

As a module

const md5HashForFile = require("hash-for-file");

/* Async usage */
md5HashForFile("test.txt", (err, hash) => {
    if (err) throw err;

    console.log(`The MD5 hash of test.txt is: ${hash}`);
});