npm install pathwatcher
npm installto install the dependencies
npm testto run the specs
PathWatcher = require 'pathwatcher'
Watch for changes on
filename is either a file or a
directory. The returned object is a
The listener callback gets two arguments
event can be
path is the path of the file which triggered the
For directories, the
change event is emitted when a file or directory under
the watched directory got created or deleted. And the
not recursive, so changes of subdirectories under the watched directory would
not be detected.
Stop watching for changes on the given