Awesome Open Source
Awesome Open Source

Node File Hash

Generated by OSS Project Generator.

Travis Status AppVeyor Status CircleCI Status Coveralls Status NPM Version License

Compute the md5, sha1 and sha256 hashs of a string or buffer.

Installation

Install package

$ npm install --save node-file-hash

Usage

const lib = require('node-file-hash');

lib.createHash('Buffer')
  .then((hash) => console.log(hash))
  .catch((err) => console.error(err));

Output

{
  "md5": "7e62bc342f41c946868f0ea6f0b712d8",
  "sha1": "2be5f64b36230104ef9c6e230215846a83d18df6",
  "sha256": "e44193fd2d21722a46c8fcab041508d4c5be95a34828b72c631df53e8d7e20a6"
}

Development

  • Cloning the repo
$ git clone https://github.com/robertoachar/node-file-hash.git
  • Installing dependencies
$ npm install
  • Running scripts
Action Usage
Starting development mode npm start
Linting code npm run lint
Running unit tests npm run jest
Running code coverage npm run coverage
Running lint + tests npm test
Sending coverage results to Coveralls.io npm run coveralls

Author

Roberto Achar

License

MIT


Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
Javascript (1,511,581
Nodejs (53,816
Hash (1,142
Md5 (389
Sha256 (378
Sha1 (253
Related Projects