digest-directory

0.1.0 • Public • Published

digest-directory

build status code coverage code style styled with prettier made with lass license npm downloads

Get hash from directory content

Table of Contents

Install

npm:

npm install digest-directory

yarn:

yarn add digest-directory

Usage

const digest = require('digest-directory');
 
const dirpath = '/path/to/directory';
 
// ... in async function
const hash = await digest(dirpath);
 
// ... with filter function
const hash = await digest(dirpath, fileName => fileName !== '/tmp/exclude.this');
 
console.log(hash);
// 62911adae73552fa3bc8691d2ca3b3e0

Contributors

Name Website
Shaun Warman https://shaunwarman.com

License

MIT © Shaun Warman

/digest-directory/

    Package Sidebar

    Install

    npm i digest-directory

    Weekly Downloads

    0

    Version

    0.1.0

    License

    MIT

    Unpacked Size

    22 kB

    Total Files

    15

    Last publish

    Collaborators

    • shaunwarman