Simple command line tool to watch files/directories and call a command when a change has been detected. Uses Chokidar underneath. There's also Chokidar-CLI, which is a more complete version but doesn't provide an option to configure the stabilityThreshold
.
I use it to watch a folder for syncing it with Google Drive.
Clone repository and run npm install
.
$ node index.js
$ node index.js <folder> -c <command>
$ npm run build
$ ./dirwatch-linux # will show the command help
MIT