kvack

robust file watching

npm install kvack
4 downloads in the last week
8 downloads in the last month

kvack lets you watch a specific file path for changes. Because watchers are tied to paths rather than specific files, they report create and delete events in addition to modify events.

Usage

var kvack = require('kvack')
  , watcher = kvack('/path/to/file')

watcher.on('change', function (event) {
  // the event will be either 'create', 'modify' or 'delete'; specific
  // events are emitted alongside the general 'change' event
})
npm loves you