This package has been deprecated

Author message:

Development of this module has been stopped.

random-throw

1.0.3 • Public • Published

random throw

Randomly throw an error

Usage

$ npm install --save random-throw
const randomThrow = require('random-throw')

// call randomThrow at some point preferably in a regularly used function

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

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

Readme

Keywords

Package Sidebar

Install

npm i random-throw

Weekly Downloads

0

Version

1.0.3

License

MIT

Last publish

Collaborators

  • roryrjb