0.0.2 • Published 8 years ago

deterministic-sha1 v0.0.2

Weekly downloads
3
License
MIT
Repository
github
Last release
8 years ago

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.