A simple directory watching script that will compute the checksum for all files within a path and execute a change when the sum changes. Allows for callbacks when files change in a directory.
JavaScript Perl Ruby
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
build
.gitattributes
.gitignore
README.md
njs-watch.js
njs-watch.sublime-project
package.json

README.md

Node.js Watch

A simple directory watching script that will compute the checksum for all files within a path and execute a change when the sum changes. Allows for callbacks when files change in a directory.

Usage:

monitor(__dirname + '/build', function(){
    console.log('updated');
});

Licenced under MIT. For more information, http://opensource.org/licenses/MIT