1.0.4 • Published 5 years ago

awdirectoryhash v1.0.4

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

awDirectoryHash

A NPM package that recursively reads a directory and creates a tree of file hashes.

Installing

To install run:

npm install awdirectoryhash

Usage

Import the entry method:

import { getInstance } from 'awdirectoryhash';
interface Hasher {
    hashDirectory (directoryPath: string): string;
}

const hashConfig = {
    hashAlgorithm: 'sha256',
    hashEncoding: 'hex'
};
const hasher = getInstance(hashConfig);
const hash = hasher.hashDirectory(directoryPath);

Running the tests

Run

npm test

Versioning

We use SemVer for versioning.

Authors

See also the list of contributors who participated in this project.

License

This project is licensed under the MIT License - see the LICENSE.md file for details

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago