Skip to content

Sequoia/error-throwing-middleware

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 

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