inotifywatch

0.0.1 • Public • Published

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();
});

/inotifywatch/

    Package Sidebar

    Install

    npm i inotifywatch

    Weekly Downloads

    1

    Version

    0.0.1

    License

    MIT

    Last publish

    Collaborators

    • tralamazza