Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
nodejs inotify wrapper
JavaScript
branch: master

init

latest commit 2299c25b31
Daniel Tralamazza authored
Failed to load latest commit information.
examples init
.gitignore init
README.md init
index.js init
package.json init

README.md

inotifywatch

File/folder watcher based on inotify.

Install

npm install inotifywatch

Example

var inotifywatch = require('inotifywatch');

/* watcher is an EE */

var watcher = inotifywatch('.', function (event, data) {
  // you can use a callback here to capture all events
  console.log(event, data);
});
// or register for events
watcher.on('create', function (data) {
  if (data === 'close.txt')
    watcher.close();
});
Something went wrong with that request. Please try again.