Watch files and directories for changes
Last updated a year ago by benjamn .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @meteorjs/pathwatcher 
SYNC missed versions from official npm registry.

Path Watcher Node module

mac OS Build Status Windows Build Status Depenency Status


npm install pathwatcher


  • Clone the repository
  • Run npm install to install the dependencies
  • Run npm test to run the specs


PathWatcher = require 'pathwatcher'

PathWatcher.watch(filename, [listener])

Watch for changes on filename, where filename is either a file or a directory. The returned object is a PathWatcher.

The listener callback gets two arguments (event, path). event can be rename, delete or change, and path is the path of the file which triggered the event.

For directories, the change event is emitted when a file or directory under the watched directory got created or deleted. And the PathWatcher.watch is not recursive, so changes of subdirectories under the watched directory would not be detected.


Stop watching for changes on the given PathWatcher.

Current Tags

  • 8.0.2                                ...           latest (a year ago)

1 Versions

  • 8.0.2                                ...           a year ago
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (8)
Dev Dependencies (10)
Dependents (0)

Copyright 2014 - 2016 © taobao.org |