1.0.1 • Published 3 years ago

watch-traverse v1.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

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?

1.0.1

3 years ago

1.0.0

3 years ago