Skip to content

anakreon/awDirectoryHash

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published