watch-tree-maintained
Version:
Yet another library for watching FS trees. Includes a JSON-on-stdout command-line tool and {filePreexisted,allPreexistingFilesReported} events.
10 lines (9 loc) • 345 B
JavaScript
(function() {
var StatWatcher;
StatWatcher = require('./watchers/stat').StatWatcher;
exports.EVENTS = ['allPreexistingFilesReported', 'filePreexisted', 'fileCreated', 'fileModified', 'fileDeleted'];
exports.watchTree = function(path, options) {
options = options || {};
return new StatWatcher(path, options);
};
}).call(this);