Watchr normalises the node.js watching functionality between 0.4's fs.watchFile, and 0.6's fs.watch, and adds support for watching entire directories including their far descendants (some call this recursive directory watching)
-
JavaScript
// Requires require('coffee-script'); # watchr dependency var watchr = require('watchr'); // Watch watchr.watch(path,function(){ console.log('something changed inside the directory'); });
-
CoffeeScript
# Requires watchr = require('watchr') # Watch watchr.watch path, -> console.log('something changed inside the directory')
npm install watchrSupport can be found in the github issue tracker
You can discover the history inside the History.md file
Licensed under the MIT License
Copyright © 2011-2012 Benjamin Arthur Lupton