/auto-restarter

An auto restarter program for Node.js

Primary LanguageJavaScriptMIT LicenseMIT

Auto Restarter

This is a tiny tool to restart automatically a Node.js program when the program ends.

Install

npm install -g auto-restarter

Usage

Syntax: auto-restarter <file> [msBeforeRestart]

Examples

  • This will keep started a file named test.js:
    auto-restarter test.js
  • This will keep started a file named test.js, waiting 2 seconds between each restart:
    auto-restarter test.js 2000

License

MIT License

Copyright (c) 2021 Gauthier THOMAS