Mine watches for changes in a directory and runs a command on any save change. I use it a lot for Test Driven Development. Modify source code, save and automatically on a terminal it runs `make test` or similar.
https://gist.github.com/davidmoreno/c049e922e41aaa94e18955b9...