#watch #change #command #file #file-path #set #run

bin+lib watchy

Watch a set of files for changes and run a command on change

3 releases

0.1.2 Mar 1, 2025
0.1.1 Feb 23, 2025
0.1.0 Feb 17, 2025

#2691 in Command line utilities

Download history 88/week @ 2025-02-12 138/week @ 2025-02-19 152/week @ 2025-02-26 10/week @ 2025-03-05

388 downloads per month

Apache-2.0

7KB
97 lines

watchy 🐋

Watch files and runs a command on file change with the file path passed as an argument.

Usage

watchy --watch ./foo.txt --then bar.sh

When ./foo.txt changes watchy will execute bar.sh ./foo.txt.

Notes

We use IN_ONESHOT because some programs update by moving.

Dependencies

~5MB
~101K SLoC