Skip to content

Latest commit

 

History

History
26 lines (17 loc) · 484 Bytes

README.md

File metadata and controls

26 lines (17 loc) · 484 Bytes

express-boom

Boom response objects in Express.

Install

npm install express-boom --save

Usage

var express = require('express');
var boom = require('express-boom');

var app = express();

app.use(boom());

app.use(function (req, res) {
  res.boom.notFound(); // Responsds with a 404 status code
});

For a complete list of methods, see the Boom docs