package
Watch files and directories for changes
npm install pathwatcherGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Estimated unpacked size across 22 packages.
5.2 MB
Includes dependencies.
npm install pathwatchernpm install to install the dependenciesnpm test to run the specsPathWatcher = require 'pathwatcher'Watch for changes on filename, where filename is either a file or a
directory. The returned object is a PathWatcher.
The listener callback gets two arguments (event, path). event can be rename,
delete or change, and path is the path of the file which triggered the
event.
For directories, the change event is emitted when a file or directory under
the watched directory got created or deleted. And the PathWatcher.watch is
not recursive, so changes of subdirectories under the watched directory would
not be detected.
Stop watching for changes on the given PathWatcher.
benogle
ogle.ben@gmail.com