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');