autowatch

0.1.1 • Public • Published


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.

Readme

Keywords

none

Package Sidebar

Install

npm i autowatch

Weekly Downloads

1

Version

0.1.1

License

MIT

Last publish

Collaborators

  • rauchg
  • leo
  • matheuss
  • tootallnate
  • qix