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` di

9 个版本
安装
npm install watch_r
yarn add watch_r
pnpm add watch_r
bun add watch_r
README

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 2013-11-09
0.0.14 2013-08-07
0.0.10 2013-06-26
0.0.9 2013-05-25
0.0.8 2013-05-23
0.0.7 2013-05-22
0.0.6 2013-05-20
0.0.3 2012-08-23
0.0.1 2011-11-15