gaze-collect
Watches files for you and outputs all the changed files as they change.
var Collector = var watcher = watcher watcher
API
Collector(dirs, opts)
Returns a watcher
dirs
: the directories to watch
opts
- takes any options for the Gaze object
- also includes:
read
: boolean. whether or not to read contents into the return objectvalid
: function (filepath). returns true if filepath should be included. defauls to trueparse
: boolean. whether or not to parse file into json
watcher.close()
Closes the watcher -- stops watching the filesystem.
Events
There should be more, but right now it just emits one event -- that's when the kernel spec (kernel.json
) has changed.
data
watcher