watch-loop

0.1.1 • Public • Published

watch-loop

recursively watch a directory.

Install

npm install watch-loop

Usage

loop(dirname | filename, options, fn)

Sample

 
loop('./', function(ev) {
    ev.on('change', function(filename) {
        console.log('changing ' + filename);
    })
 
    ev.on('rename', function(filename) {
        console.log('rename a file')
    })
})
 

License

MIT@chilijung

Readme

Keywords

none

Package Sidebar

Install

npm i watch-loop

Weekly Downloads

1

Version

0.1.1

License

MIT

Last publish

Collaborators

  • chilijung