Skip to content

hashFiles is not defined #5

@ChloeCoupignyWarot

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

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