Skip to content

Sequoia/error-throwing-middleware

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

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.

About

express middleware that randomly throws errors

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published