JSPM

  • Created
  • Published
  • Downloads 856550
  • Score
    100M100P100Q173135F

A file watcher utility for nodeJS

Package Exports

  • node-watch

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (node-watch) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

#Node-watch

This program is part of Markab(an instant mockup tool, still under development).

The difference bewteen other nodewatch tools is that it does not differentiate event like "rename" or "delete". Once there is a change, the callback function will be triggered.

##Feature

Recursively watch a directory

##Installation

npm install node-watch

Example

var watch = require('node-watch');

watch('somedir', function(filename) {
  console.log(filename, ' changed.');
});