fsevents-tools

Monitor file system events and changes in real-time on macOS.

brewmacoslinux
Try with needOr install directly
Source

About

Command-line utilities for the FSEvents API

Commands

fswatchfsevent_watch

Examples

watch a folder for any file changes$ fswatch /path/to/folder
run a command automatically when files change$ fswatch -x /path/to/folder | xargs -n1 ./rebuild.sh
monitor specific file types and show detailed changes$ fswatch --extended /path/to/folder | grep '.js$'
watch multiple directories at once$ fswatch /src /config /tests
trigger reload when code changes during development$ fswatch src | xargs -I {} npm run build