# express-boom

> Boom response objects in Express

Latest version **3.0.0** (published 2019-03-08) · MIT license · 0 weekly downloads

## Install

```sh
npm install express-boom
pnpm add express-boom
yarn add express-boom
bun add express-boom
```

## Health

**Score 23/100 (F)** — status: abandoned.

Positive: has types package; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 3.0.0 |
| Published | 2019-03-08 |
| First published | 2014-07-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | separate (@types/express-boom) |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 4.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 44 |
| Author | Scott Corgan |
| Maintainers | scottcorgan |
| Keywords | Hapi, Boom, Express, response |

## Links

- npm: https://www.npmjs.com/package/express-boom
- Repository: https://github.com/scottcorgan/express-boom
- Issues: https://github.com/scottcorgan/express-boom/issues
- npm.io page: https://npm.io/package/express-boom

## Dependencies (1)

- [boom](https://npm.io/package/boom.md) ^7.3.x

## Recent versions

- 3.0.0 (latest) — 2019-03-08
- 2.0.0 — 2016-12-14
- 1.0.0 — 2016-05-21
- 0.3.0 — 2014-08-15
- 0.2.0 — 2014-07-09
- 0.1.0 — 2014-07-02

## README

# express-boom

[Boom](https://www.npmjs.org/package/boom) response objects in Express.

## Install

```
npm install express-boom --save
```

## Usage

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

var app = express();

app.use(boom());

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

app.use(function (req, res) {
  // some validation check fail and returns an object : reasons
  
  res.boom.badRequest("Validation didn't suceed", reasons); // Responds Boom message + reasons object
});

app.listen(4444);
```

For a complete list of methods, see the [Boom docs](https://github.com/hapijs/boom#overview)

---
_Source: https://npm.io/package/express-boom · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
