filechangeemitter

0.0.2 • Public • Published

Simple module that watches a given set of file system locations and emits events when files are changed.

Install

npm install filechangeemitter

Usage

var fsEmitter = new FileChangeEmitter([
	'./first/location',
	'./another/location'
]);
	
fsEmitter.on('change',function(fileName){
	// your code
});

And to detach the watchers from the filesystem:

fsEmitter.close();

Tests

npm test

Readme

Keywords

none

Package Sidebar

Install

npm i filechangeemitter

Weekly Downloads

0

Version

0.0.2

License

none

Last publish

Collaborators

  • richmarr