0.1.1 • Published 12 years ago

watch-inotify v0.1.1

Weekly downloads
18
License
-
Repository
github
Last release
12 years ago

watch-inotify

Version of watch (by Mike Rogers) module, which uses node-inotify for watching/monitoring file trees.

Usage

As in original module API is not changed, so creating of monitor is the same:

watch.createMonitor('/home/mikeal', function (monitor) {
	monitor.on("created", function (f, stat) {
		// handle creation
	});
	monitor.on("changed", function (f, curr, prev) {
		// handle file changes
	});
	monitor.on("removed", function (f, stat) {
		// handle deletion
	});
});

TODO

  • Update code to use FS Events (for OS X) and make this module support both inotify and FS Events (maybe use NodeJS-FSEvents?)
0.1.1

12 years ago

0.1.0

12 years ago

0.0.2

12 years ago

0.0.1

12 years ago