# auto-restarter

> An auto restarter program for Node.js

Latest version **1.0.2** (published 2024-01-25) · MIT license · 0 weekly downloads

## Install

```sh
npm install auto-restarter
pnpm add auto-restarter
yarn add auto-restarter
bun add auto-restarter
```

Provides the command `auto-restarter`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2024-01-25 |
| First published | 2021-01-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 4.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 9 |
| Author | gauthier-th |
| Maintainers | gauthier-th |

## Links

- npm: https://www.npmjs.com/package/auto-restarter
- Repository: https://github.com/gauthier-th/auto-restarter
- Homepage: https://github.com/gauthier-th/auto-restarter#readme
- Issues: https://github.com/gauthier-th/auto-restarter/issues
- npm.io page: https://npm.io/package/auto-restarter

## Dependencies (1)

- [ansi-styles](https://npm.io/package/ansi-styles.md) ^5.0.0

## Recent versions

- 1.0.2 (latest) — 2024-01-25
- 1.0.1 — 2021-03-08
- 1.0.0 — 2021-01-06

## README

# Auto Restarter

This is a tiny tool to restart automatically a Node.js program when the program ends.

## Install

```bash
npm install -g auto-restarter
```

## Usage

```
Syntax: auto-restarter <file> [msBeforeRestart]
```

## Examples

- This will keep started a file named `test.js`:
  ```bash
  auto-restarter test.js
  ```
- This will keep started a file named `test.js`, waiting 2 seconds between each restart:
  ```bash
  auto-restarter test.js 2000
  ```

## License

MIT License

Copyright (c) 2021 Gauthier THOMAS

---
_Source: https://npm.io/package/auto-restarter · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
