1 # glob-watcher [![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Coveralls Status][coveralls-image]][coveralls-url] [![Dependency Status][david-image]][david-url]
7 <td>Package</td><td>glob-watcher</td>
22 var watch = require('glob-watcher');
25 watch(["./*.js", "!./something.js"], function(evt){
26 // evt has what file changed and all that jazz
30 var watcher = watch(["./*.js", "!./something.js"]);
31 watcher.on('change', function(evt) {
32 // evt has what file changed and all that jazz
35 // add files after it has been created
36 watcher.add("./somefolder/somefile.js");
40 [npm-url]: https://npmjs.org/package/glob-watcher
41 [npm-image]: https://badge.fury.io/js/glob-watcher.png
43 [travis-url]: https://travis-ci.org/wearefractal/glob-watcher
44 [travis-image]: https://travis-ci.org/wearefractal/glob-watcher.png?branch=master
46 [coveralls-url]: https://coveralls.io/r/wearefractal/glob-watcher
47 [coveralls-image]: https://coveralls.io/repos/wearefractal/glob-watcher/badge.png
49 [depstat-url]: https://david-dm.org/wearefractal/glob-watcher
50 [depstat-image]: https://david-dm.org/wearefractal/glob-watcher.png
52 [david-url]: https://david-dm.org/wearefractal/glob-watcher
53 [david-image]: https://david-dm.org/wearefractal/glob-watcher.png?theme=shields.io