bevry / watchr

Better file system watching for Node.js. Provides a normalised API the file watching APIs of different node versions, nested/recursive file and directory watching, and accurate detailed events for file/directory changes, deletions and creations.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Removing a single watcher?

braco opened this issue · comments

Is there any way to remove a single watch? Don't see anything in the docs about this.

I'm adding files one by one with:
watchr.watch
path: single_file
listeners: ...

and sometimes I need to remove one file's watch. I see .close(), but that seems global.

Alternatively, how can I check if a watch already exists?


Want to back this issue? Place a bounty on it! We accept bounties via Bountysource.

v3.0.0 just released now includes clear documentation on how to do this, sorry it took so long, 2014 and 2015 were hard years for me!

👍