Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

error-throwing-middleware

1.1.0 • Public • Published

Install

npm i -S error-throwing-middleware

Use

var thrower = require('error-throwing-middleware');
app.use(thrower);

Now you randomly get errors! :)

You can also change the frequency (defaults to ~60% of the time.)

var thrower = require('error-throwing-middleware');
app.use(thrower.frequency(0.9)); // throw ~90% of the time.

install

npm i error-throwing-middleware

Downloadsweekly downloads

2

version

1.1.0

license

GPL

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar