1.0.1 • Published 5 years ago

@sapics/glob-watcher v1.0.1

Weekly downloads
114
License
-
Repository
github
Last release
5 years ago

glob-watcher NPM version Build Status Coveralls Status Dependency Status

Information

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");