0.0.1 • Published 6 years ago

proc-restart v0.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

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:

const restart = require('proc-restart')

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

License

MIT © Konstantin Azizov