random-killdeprecated

randomly kill your process

Usage no npm install needed!

<script type="module">
  import randomKill from 'https://cdn.skypack.dev/random-kill';
</script>

README

random kill

Randomly kill your process

Usage

$ npm install --save random-kill
const randomKill = require('random-kill')

// call randomKill at some point preferably in a regularly used function
// or on a timer

app.post('/auth', (req, res) => {
  randomKill()

  // do auth stuff
  checkPassword()
    .then(login())
    .catch(sessionError)
})