A NPM package that recursively reads a directory and creates a tree of file hashes.
To install run:
npm install awdirectoryhash
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);
Run
npm test
We use SemVer for versioning.
- Martin Hula - Initial work - anakreon
See also the list of contributors who participated in this project.
This project is licensed under the MIT License - see the LICENSE.md file for details