hash-files icon indicating copy to clipboard operation
hash-files copied to clipboard

hashFiles is not defined

Open ChloeCoupignyWarot opened this issue 8 years ago • 0 comments

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 I added this : var hashFiles = require('hash-files');

ChloeCoupignyWarot avatar Dec 29 '16 09:12 ChloeCoupignyWarot