2.0.1 • Published 3 years ago

crashpad v2.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
3 years ago

Crashpad

Express middleware for Boom errors

NPM version Build Status MIT License

Usage

Install this middleware and stop explicitly responding with errors from your application code!

npm install crashpad
var crashpad = require('crashpad');
var Boom = require('boom');

app.get('/error', function(req, res, next) {
  throw Boom.expectationFailed();
});

app.use(crashpad());

Crashpad will handle:

Right now Crashpad just sends back JSON payloads. Eventually, we'll have support for fancy rendered error pages! If you need something like that now, check out express-error-handler.

Contributing

Please follow our Code of Conduct when contributing to this project.

$ git clone https://github.com/goodeggs/crashpad && cd crashpad
$ yarn install
$ yarn test

Releasing

To release a new version of this module, use yarn to bump the version in package.json and create a git tag, then push. This will automatically get published to the NPM registry via CI.

yarn version --new-version=<major|minor|patch|premajor|preminor|prepatch>
git push --follow-tags
2.0.1

3 years ago

1.2.4

9 years ago

1.2.3

9 years ago

1.2.2

9 years ago

1.2.1

9 years ago

1.2.0

9 years ago

1.1.0

9 years ago