deterministic-sha1

0.0.2 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i deterministic-sha1

Weekly Downloads

0

Version

0.0.2

License

MIT

Last publish

Collaborators

  • shuijsen