Skip to content

jessekrubin/fastify-shitty

Repository files navigation

fastify-shitty

Fastify plugin to help solve this issue: fastify/fastify#2955

Fastify is excellent; to make fastify less excellent, fastify-shitty throws errors randomly and/or delays sending responses.

js-standard-style

Supports Fastify versions 3.x

Install

npm i @jsse/fastify-shitty

Usage

Require @jsse/fastify-shitty and register.

const fastify = require('fastify')()

fastify.register(require('@jsse/fastify-shitty'), {
  // put your options here
  odds: 0.5, // odds of throwing error; default is `0.2`
  delay: false // delay responses (t/f); default is `true`
})

fastify.listen(3000)

Acknowledgements

  • fastify, for being excellent

  • mom & dad

License

Licensed under MIT.

About

Make fastify worse

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published