lib/local.js
function calculateHash(file, fn) {
  read(file, function(err, bin) {
    if (err) return fn(err);
    fn(null, hash('sha256').update(bin).digest('hex'));
  });
}
function calculateHash(file, fn) {
  read(file, function(err, bin) {
    if (err) return fn(err);
    fn(null, hash('sha256').update(bin).digest('hex'));
  });
}
function calculateHash ( file , fn ) { read ( file , function ( err , bin ) { if ( err ) return fn ( err ) ; fn ( null , hash ( 'sha256' ) . update ( bin ) . digest ( 'hex' ) ) ; } ) ; }
Calculate hash for a file

@param {String} file
@param {Function} fn
Calculate hash for a file