Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hashFiles is not defined #5

Open
ChloeCoupignyWarot opened this issue Dec 29, 2016 · 0 comments
Open

hashFiles is not defined #5

ChloeCoupignyWarot opened this issue Dec 29, 2016 · 0 comments

Comments

@ChloeCoupignyWarot
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant