hash-files
hash-files copied to clipboard
A simple function for computing the hash of the contents of a set of files.
 **Command**: `hash-files -f '["package.json"]'` **Expected:** Hash the array of files **Actual:** `Error: Option "files" has a value that cannot be converted to an Object/Array: '[package.json]'` **System**: **OS**: Windows 11...
As far as I understand, this works by concatenating all of the files together and then hashing the result. Does this mean that we can get the same hash when...
As example, the command should be like: `$ ./bin/hash-files -f '["package.json"]' -a sha256` But it would throw an error said `Option "files" has a value that cannot be converted to...
All I added was a new method called `hashFiles.promise` that is just a Promise wrapper for hashFiles. I guess I probably should have opened up an issue first, but whatever,...
I'm trying to get hash of a file but it doesn't work. this is my code : hashFiles({"files":'/path/to/my/file', "algorithm":'sha256'}, function(error, hash){ if (error) throw error; console.log(hash); }); abd into server.js...