UNPKG

watch-tree-maintained

Version:

Yet another library for watching FS trees. Includes a JSON-on-stdout command-line tool and {filePreexisted,allPreexistingFilesReported} events.

18 lines (11 loc) 266 B
{StatWatcher} = require './watchers/stat' exports.EVENTS = [ 'allPreexistingFilesReported' 'filePreexisted' 'fileCreated' 'fileModified' 'fileDeleted' ] exports.watchTree = (path, options) -> options = options or {} new StatWatcher path, options