Skip to content

locksfree/watchr

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Watchr. Node.js file watching that doesn't suck.

Watchr normalises the node.js watching functionality between 0.4's fs.watchFile, and 0.6's fs.watch, and adds support for watching entire directories including their far descendants (some call this recursive directory watching)

Using

  • JavaScript

     // Requires
     require('coffee-script'); # watchr dependency
     var watchr = require('watchr');
    
     // Watch
     watchr.watch(path,function(){
     	console.log('something changed inside the directory');
     });
  • CoffeeScript

     # Requires
     watchr = require('watchr')
    
     # Watch
     watchr.watch path, ->
     	console.log('something changed inside the directory')

Install

npm install watchr

Support

Support can be found in the github issue tracker

History

You can discover the history inside the History.md file

License

Licensed under the MIT License
Copyright © 2011-2012 Benjamin Arthur Lupton

About

Recursive node.js watching that doesn't suck

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • CoffeeScript 100.0%