Watch a directory for changes.
Provides a simplified wrapper around chokidar for watching a directory.
Installation
yarn add watch-dir-safe
npm install watch-dir-safe
API
Usage
; ; watcher.onReady.onAdd.onChange.onRemove.onAddDir.onRemoveDir; // To stop watching:watcher.stop;
Types
; ; ;
Dependencies
- chokidar: A neat wrapper around node.js fs.watch / fs.watchFile / fsevents.
Dev Dependencies
- @bconnorwhite/bob: undefined
License
Related Packages
- fs-safe: A simple fs wrapper that doesn't throw
- watch-file-safe: Watch a file for changes
- read-dir-safe: Read directories recursively or non-recursively
- write-dir-safe: Create directories and their parents recursively
- remove-dir-safe: Remove directories recursively or non-recursively