npm.io
0.0.2 • Published 9 years ago

deterministic-sha1

Licence
MIT
Version
0.0.2
Deps
2
Vulns
0
Weekly
0

deterministic-sha1

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.

Usage

Install

npm i deterministic-sha1 -S

Use
const sha1Sync = require('deterministic-sha1');

const hash = sha1Sync('some_folder');
console.log(hash)

Warning

This library is still under development. We use it for our own purposes, which may not match yours.