fs-watch-exec

1.1.2 • Public • Published

watch-exec

Watchs a directory and runs the command(s) specified

Installation

$ npm install -g fs-watch-exec

Usage

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.1.2
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.1.2
    2
  • 1.1.1
    0
  • 1.1.0
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i fs-watch-exec

Weekly Downloads

2

Version

1.1.2

License

ISC

Unpacked Size

4.93 kB

Total Files

4

Last publish

Collaborators

  • omarwaleed