- Added new method
waitForChange
which allows you to wait for a single change on a given directory with an optional timeout and predicate stopAll
now takes adirectory
argument to only stop watchers on a specific directory- Changed how
stop
andstopAll
works - Exposed the weak cache of watchers
- Added a new
rename
event which fires when a file is renamed - Added a new method
fs_watcher.stopAll
which stops all running watchers
- Made the callback automatically stop the watcher if a truthy value is returned
- Fix very minor oversight where
fs_watcher.stop
was not type checked
- Initial release of the module