hashfile
calculates the hash of a file
Last updated 7 years ago by ekashida .
BSD · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install hashfile 
SYNC missed versions from official npm registry.

hashfile

Calculates the hash of a file.

example

var hashfile = require('hashfile');

hashfile('/kamen/rider', function (err, hash) {
    if (err) {
        console.error(err);
    }
    console.log('hash of file', hash);
});

methods

var hashfile = require('hashfile');

hashfile(filepath, [options], callback)

Gets the hash of the content of a file specified by the filepath string. filepath can also be a Buffer.

The default hash algorithm is sha1 but can be overridden via options.algorithm.

The default hash encoding is hex but can be overriden via options.encoding.

install

npm install hashfile

license

BSD

Current Tags

  • 0.0.0                                ...           latest (7 years ago)

1 Versions

  • 0.0.0                                ...           7 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (0)
None

Copyright 2014 - 2016 © taobao.org |