@meteorjs/pathwatcher

8.0.2 • Public • Published

Path Watcher Node module

mac OS Build Status Windows Build Status Depenency Status

Installing

npm install pathwatcher

Building

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

Using

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.

PathWatcher.close()

Stop watching for changes on the given PathWatcher.

Readme

Keywords

none

Package Sidebar

Install

npm i @meteorjs/pathwatcher

Weekly Downloads

1

Version

8.0.2

License

none

Unpacked Size

98.6 kB

Total Files

18

Last publish

Collaborators

  • gywem
  • hschmaiske
  • grubba
  • fredmaiaarantes
  • mdg
  • denyhs