0.0.15 • Published 11 years ago

watch_r v0.0.15

Weekly downloads
50
License
-
Repository
-
Last release
11 years ago

Features

  • recursively watch files
  • watch new dirs/files that have been added to any watched directory
  • ability to ignore files with .ignorewatch including list of files to ignore (similar to .gitignore). Use * to ignore all files in .ignorewatch directory.

Installation

npm install watch_r

Example

  
var watch_r = require('watch_r');

watch_r('/path/to/file', function(err, watcher) {
	 
	//add / change
	watcher.on('change', function(target) {
		
		//changed file
		console.log(target.path);
	})
	
	watcher.on('remove', function(target) {
		
		//removed file
		console.log(target.path);
	});
})
0.0.15

11 years ago

0.0.14

11 years ago

0.1.0

11 years ago

0.0.10

11 years ago

0.0.9

11 years ago

0.0.8

11 years ago

0.0.7

11 years ago

0.0.6

11 years ago

0.0.3

12 years ago

0.0.2

12 years ago

0.0.1

13 years ago