Skip to content

hashFiles is not defined #5

Description

@ChloeCoupignyWarot

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions