Socket
Socket
Sign inDemoInstall

autowatch

Package Overview
Dependencies
2
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    autowatch

Automatically restart a node process if one of its files changes


Version published
Weekly downloads
1
decreased by-50%
Maintainers
1
Created
Weekly downloads
 

Readme

Source


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.

FAQs

Last updated on 09 Aug 2017

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc