Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

file-hash

jssdkcn30MIT0.0.5

File hash for file cloud computing

file-hash, hash, file, sha, md5, cloud, tag

readme

NPM version Build Status Dependency Status

File hash for file-cloud

Install

$ npm install --save file-hash

Usage

var fileHash = require('file-hash');
var path = require('path');

fileHash(function (hash) {
  //result, false if error occur
  //'0bfc0089cda3279444f72428f0f940a3ebfdc7f8'
  }, 
  //resolvable path
  path.resolve(__dirname, 'a.txt'),
 //type of algorithm
 'sha1',
  //upper or not, lower is default
  true
  );

$ npm install --global file-hash
$ fash --help
$ fash  a.txt 
//9a3f2bdd77e0bd4c87e954e154f05d525c85f844
$ fash a.jpg --type md5
//969996c794949bbf0e40827cefc98f2d
$ fash a.jpg --type md5 --case upper
//969996C794949BBF0E40827CEFC98F2D

License

MIT © calidion