Autowatch
A dead simple, zero configuration watch tool for Node.js applications.
Installation
$ npm i -g autowatch
Usage
$ autowatch <args...>
Where args...
are arguments passed directly to node
. Autowatch has no flags or arguments itself.
How does it work?
Autowatch streams all imported modules to the parent Autowatch process for monitoring by
injecting itself into require.extensions
table handlers.
From there, it uses file watchers provided by Node to handle "rebooting" the process.
By moving module registrations into the parent process, the child process and crash or exit whenever it
wants, still allowing the developer to re-run it just by changing a file. This further reduces the
feedback loop required to fix typos, syntax errors, etc.
License
Released under the MIT license.