A smart directory watcher cli utility.


A utility that watches your directory for file changes, and then executes a command on change. The output of the command is always anchored to the top to a box which makes for a nice iterative development experience.

Watch it in action in this screencast (3:22).

First you need Node. Then

npm install watchem -g
watchem "Makefile,**/*.c,**/*.h" make

This command will watch the Makefile, and any .c or .hfiles within the current directory and within any of its subdirectories. It runs the command make and re-run it whenever any matching files change, even new ones that are created.

Watchem uses blessed to build its user interface. It uses fireworm for file watching.