express-die

express handler to kill your node process

express-die

express handler to kill your node process

$ npm install express-die

Kill your node process from a route, handy when used with a watcher that restarts it, useful for apps that misbehave.

It will also redirect to / after 5 seconds.

var die = require('express-die');
app.get('/die', die);

MIT