just a watcher class. do whatever you want with it.

by Amit Marcus - 2013 - enjoy - MIT License and such.

var AWatcher = require('a_watcher');
var aWatcher = new AWatcher('path/to/watch', function(event, item){
    if (event === 'change'){
        console.log(item + ' was just changed!');
aWatcher.close()     # stops the watcher
aWatcher.list        # array of watched items
aWatcher.watchers    # object that holds {item: fs.FSWatcher}

for directories it will trigger 'add'/'remove' and for files it will also trigger 'change'

npm install a_watcher