repl-watcher npm install -g repl-watcher then repl-watcher This uses the file watch utility chokidar as its only dependency. Look into package.json and the heavily commented repl-watcher.sh for details how this works.