fs-watch-exec
v1.1.2
Published
A filesystem watcher that executes a command when detecting change in given file/directory
Maintainers
Readme
watch-exec
Watchs a directory and runs the command(s) specified
Installation
$ npm install -g fs-watch-execUsage
Basic usage
$ watch-exec run -d [directory] <command>If directory is not provided, defaults to current working directory.
Unlike node's default fs.watch function, watch-exec watches all files in your directory recursively
Coloring
By default watch-exec will print all logs in the following colors:
- Green: watch-exec logs
- Red: Error output (STDERR)
- White (or terminal default): Normal log (STDOUT)
Roadmap
- Optional disable coloring
- Optional disable recursive watcher
- Optional print files being watched
