Generate the same SHA1 from the same folder every time, regardless of whether a file was only accessed.
The output from two folders with identical files in them will yield the exact same result every time.
Please note this is a synchronous function, so you will find no callbacks.
npm i deterministic-sha1 -S
const sha1Sync = require('deterministic-sha1');
const hash = sha1Sync('some_folder');
console.log(hash)
This library is still under development. We use it for our own purposes, which may not match yours.