|
|
hace 2 semanas | |
|---|---|---|
| .. | ||
| test | hace 2 semanas | |
| .npmignore | hace 2 semanas | |
| .travis.yml | hace 2 semanas | |
| LICENSE | hace 2 semanas | |
| README.md | hace 2 semanas | |
| index.js | hace 2 semanas | |
| package.json | hace 2 semanas | |

| Package | glob-watcher |
| Description | Watch globs |
| Node Version | >= 0.9 |
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");