Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

autowatch

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

autowatch

Automatically restart a node process if one of its files changes

  • 0.1.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
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

Package last updated on 09 Aug 2017

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc