watch-traverse

1.0.1 • Public • Published

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?

Readme

Keywords

Package Sidebar

Install

npm i watch-traverse

Weekly Downloads

1

Version

1.0.1

License

MIT

Unpacked Size

1.72 kB

Total Files

4

Last publish

Collaborators

  • ev1stensberg