fastify-boom

1.0.0 • Public • Published

fastify-boom

Fastify Boom support - HTTP-friendly error objects

Current Version Build Status

Install

npm i fastify-boom

Usage

const fastify = require('fastify')()
const Boom = require('boom')
 
fastify.register(require('fastify-boom'))
 
fastify.get('/', async function (req, reply) {
  throw new Boom('Opppps!')
})
 
fastify.listen(3000, err => {
  if (err) {
    fastify.log.error(err)
  }
})

Credits

  • boom HTTP-friendly error objects

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0
    486
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.0
    486
  • 0.1.0
    49
  • 0.0.3
    4
  • 0.0.2
    1
  • 0.0.1
    1

Package Sidebar

Install

npm i fastify-boom

Weekly Downloads

541

Version

1.0.0

License

MIT

Unpacked Size

6.61 kB

Total Files

12

Last publish

Collaborators

  • jeromemacias