Opal-Estate-Pro/node_modules/glob-watcher
2019-09-13 11:27:52 +07:00
..
node_modules style Dashboard 2019-09-13 11:27:52 +07:00
test style Dashboard 2019-09-13 11:27:52 +07:00
.npmignore style Dashboard 2019-09-13 11:27:52 +07:00
.travis.yml style Dashboard 2019-09-13 11:27:52 +07:00
index.js style Dashboard 2019-09-13 11:27:52 +07:00
LICENSE style Dashboard 2019-09-13 11:27:52 +07:00
package.json style Dashboard 2019-09-13 11:27:52 +07:00
README.md style Dashboard 2019-09-13 11:27:52 +07:00

glob-watcher NPM version Build Status Coveralls Status Dependency Status

Information

Packageglob-watcher
Description Watch globs
Node Version >= 0.9

Usage

var watch = require('glob-watcher');

// callback interface
watch(["./*.js", "!./something.js"], function(evt){
  // evt has what file changed and all that jazz
});

// EE interface
var watcher = watch(["./*.js", "!./something.js"]);
watcher.on('change', function(evt) {
  // evt has what file changed and all that jazz
});

// add files after it has been created
watcher.add("./somefolder/somefile.js");