# $EVENT and $FILE are passed to the process from chokidar (thanks @remy).

watchy -w . -- bash -c 'echo $EVENT $FILE'

# => change /Users/casey/projects/watchy/README.md

Note: If you're using watchy for help with preprocessing, I'd recommend
checking out my cogs project that is
highly optimized for that case with in-memory processed file caching,
directives, AMD support, and much more.

By default, watchy will send SIGTERM to the running process after a change and wait for it to exit gracefully. By sending the --wait|-W n option, you can tell watchy to forcefully SIGKILL the process after n seconds. In general, you should try to clean up connections in your processes like so: