Get the hashes of multiple files.
Uses path to resolve file path.
Simplest use is like this (outputs
sha1 hashes in
var manyHashes =
You can pass in any of these as the first parameter:
string: which is interpreted is a single file
array: which is interpreted as a list of files
object: which is an options object, see below
Does not do recursive directory walking.
Must be actual files.
Use something like glob to walk directories.
The first parameter can be an object, with the following optional parameters, like this:
var manyHashes =var options =files: './file.ext' // an array of *files* (directories not supported)encoding: 'base64' // any node.js encoding type:hash: 'sha512' // any node.js hash type:
Released under the Very Open License (VOL).