# proc-restart

> Self restart for running node process

Latest version **0.0.1** (published 2017-12-17) · MIT license · 0 weekly downloads

## Install

```sh
npm install proc-restart
pnpm add proc-restart
yarn add proc-restart
bun add proc-restart
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2017-12-17 |
| First published | 2017-12-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=6 |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | G07cha |
| Maintainers | g07cha |
| Keywords | restart |

## Links

- npm: https://www.npmjs.com/package/proc-restart
- Repository: https://github.com/G07cha/proc-restart
- Homepage: https://github.com/g07cha/proc-restart#README
- Issues: https://github.com/g07cha/proc-restart/issues
- npm.io page: https://npm.io/package/proc-restart

## Alternatives

- [lodash.startswith](https://npm.io/package/lodash.startswith.md) — 769.7K weekly downloads
- [@tarojs/service](https://npm.io/package/@tarojs/service.md) — 33.9K weekly downloads
- [io.extendreality.tilia.indicators.spatialtargets.unity](https://npm.io/package/io.extendreality.tilia.indicators.spatialtargets.unity.md) — 131 weekly downloads
- [@rtarojs/taro](https://npm.io/package/@rtarojs/taro.md) — 90 weekly downloads
- [node-branch-io](https://npm.io/package/node-branch-io.md) — 50 weekly downloads

## Recent versions

- 0.0.1 (latest) — 2017-12-17

## README

# proc-restart

Restart process without having process manager constantly running

### Quickstart

Install package:

```
npm install proc-restart
```

Require inside of your script and call it when you want to restart it:

```javascript
const restart = require('proc-restart')

process.on('uncaughtException', (err) => {
    console.error('Error occured:', err)
    restart()
})
```

## License

MIT © [Konstantin Azizov](http://g07cha.github.io)

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