JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1330697
  • Score
    100M100P100Q199375F

Watch globs

Package Exports

  • glob-watcher

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (glob-watcher) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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