0.1.0 • Published 7 years ago
digest-directory v0.1.0
digest-directory
Get hash from directory content
Table of Contents
Install
npm:
npm install digest-directoryyarn:
yarn add digest-directoryUsage
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);
// 62911adae73552fa3bc8691d2ca3b3e0Contributors
| Name | Website |
|---|---|
| Shaun Warman | https://shaunwarman.com |