@anzerr/fs.watcher
v1.0.23
Published
event based directory watcher
Downloads
38
Readme
Intro
Watch a directory and emit when a change/add/remove has happened to a file or folder.
Install
npm install --save git+https://github.com/anzerr/fs.watcher.git
npm install --save @anzerr/fs.watcher
Example
const Watcher = require('fs.watcher');
let watch = new Watcher(process.cwd()).on('change', (r) => {
console.log('change', r);
});