npm.io
1.0.2 • Published 2 years agoCLI

auto-restarter

Licence
MIT
Version
1.0.2
Deps
1
Size
4 kB
Vulns
0
Weekly
0
Stars
9

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