watch-traverse
v1.0.1
Published
A file watcher for all dependencies
Downloads
2
Readme
watch-traverse
Summary
This module lets you recursively watch files and its dependencies for change. It's a wrapper around fs.watchFile
.
Installation
npm install --save watch-traverse
Usage
const path = require('path');
const watchFile = require('watch-traverse');
const resolved = path.resolve(__dirname, 'webpack.config.js');
watchFile(resolved, (contents) => {
console.log("watching file has changed...")
});
Need help or want to donate to help me make Open Source projects?
- Send me a message on Twitter!
- Donate to me!