watcher

Filesystem watcher that executes commands on file changes

brewmacoslinux
Try with needOr install directly
Source

About

Filesystem watcher, works anywhere, simple, efficient and friendly

Commands

watcher

Examples

Watch current directory and run tests on any file change$ watcher -c 'npm test'
Watch specific directory and rebuild on changes$ watcher -c 'make build' /path/to/src
Watch multiple patterns and execute command$ watcher -c './script.sh' -p '*.js' -p '*.json'