A modern wrapper for fs.watch
Thin wrapper for
fs.watch with glob-pattern matching.
var watcher = 'lib/some-dir/' 'lib/some-dir/*.js';watcher;watcher;watcher;watcher;
There are already many wrappers on
fs.watchFile. Unfortunately, non
of them seemed to be usable without making sacrifices. Ogle chooses the
all/remove/changeevents on files
all/add/remove/changeevents on directories
fs.watchFile. See here for why.