eb

express-boom

Boom response objects in Express

Showing:

Popularity

Downloads/wk

4.3K

GitHub Stars

44

Maintenance

Last Commit

2yrs ago

Contributors

11

Package

Dependencies

1

Size (min+gzip)

6.4KB

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Reviews

Average Rating

4.0/53
Read All Reviews
jatin269
sawan-hardcoder

Top Feedback

2Easy to Use
2Performant
1Poor Documentation
1Slow

Readme

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(); // 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 succeed", reasons); // Responds Boom message + reasons object
});

app.listen(4444);

For a complete list of methods, see the Boom docs

Rate & Review

Great Documentation0
Easy to Use2
Performant2
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation1
Hard to Use0
Slow1
Buggy0
Abandoned0
Unwelcoming Community0
100
jatin26975 Ratings84 Reviews
9 months ago
Performant
Slow
Poor Documentation
Easy to Use

Boom ;) , now deprecated in its original form, now I use express-boom to get boom response in the express application, one of the best packages to throw HTTP errors when you don't necessarily want to throw with code specific but that is error specific. Easy to remember what type of error it is. Simple to use and very easy to throw HTTP error.


0
sawan-hardcoder41 Ratings66 Reviews
8 months ago
Performant
Easy to Use

Error handling is very messy in nodejs, especially when you deal with HTTP requests on daily basis, original library is deprecated and now inherited by express itself, it made a dealing error in HTTP very easy. like a walk in the park, it provides an approach to handle errors


0
JITENDER144171 Ratings50 Reviews
9 months ago

Alternatives

No alternatives found

Tutorials

No tutorials found
Add a tutorial