yaw

YetAnotherWatch utility.

npm install yaw
4 downloads in the last day
14 downloads in the last week
69 downloads in the last month

Build Status

An event based file watching utility.

Installation

npm install yaw

Usage

var Watcher = require('yaw');

var watcher = new Watcher();
watcher.watch('some/file/or/directory')
  .on('error', function(err) {
    // Handle error
  })
  .on('create', function(filepath, stats) {
    // Handle new file or directory
  })
  .on('change', function(filepath, stats) {
    // Handle update to file
  })
  .on('delete', function(filepath) {
    // Handle removal of file or directory
  });
npm loves you