Cross platform directory tree watcher, focussed on reliability, speed, and simplicity.
I've recently started some node.js projects, and have been very unhappy with the results. Many work well, but aren't cross platform. hound was written to create a simple directory tree watcher, with lots of tests, that actually works. Even on Windows.
hound is designed to be very simple, fast and reliable.
Install using npm:
npm install hound
hound = require'hound'// Create a directory tree watcherwatcher = houndwatch'/tmp'// Create a file watcherwatcher = houndwatch'/tmp/file.txt'// Add callbacks for file and directory eventswatcheron'create'console.logfile + ' was created'watcheron'change'console.logfile + ' was changed'watcheron'delete'console.logfile + ' was deleted'// Unwatch specific files or directorieswatcherunwatch'/tmp/another_file'// Unwatch all watched files and directorieswatcherclear