watch_r
- 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.
Last updated 12 years ago by architectd .
Repository · Original npm · Tarball · package.json
$ cnpm install watch_r 
SYNC missed versions from official npm registry.

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

Current Tags

  • 0.0.15                                ...           latest (12 years ago)

9 Versions

  • 0.0.15                                ...           12 years ago
  • 0.0.14                                ...           13 years ago
  • 0.0.10                                ...           13 years ago
  • 0.0.9                                ...           13 years ago
  • 0.0.8                                ...           13 years ago
  • 0.0.7                                ...           13 years ago
  • 0.0.6                                ...           13 years ago
  • 0.0.3                                ...           14 years ago
  • 0.0.1                                ...           14 years ago
Maintainers (2)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (6)
Dev Dependencies (0)
None
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |