@meanie/express-errors

A collection of error classes for use in Express

Stats

StarsIssuesVersionUpdatedCreatedSize
@meanie/express-errors
305.3.22 years ago4 years agoMinified + gzip package size for @meanie/express-errors in KB

Readme

@meanie/express-errors

npm version node dependencies github issues

A collection of error classes for use in Express or Meanie Express Seed projects

Meanie

Installation

You can install this package using yarn or npm.

#yarn
yarn add @meanie/express-errors

#npm
npm install @meanie/express-errors --save

Usage

//Load needed error classes
const errors = require('@meanie/errors');
const {BadRequestError, NotFoundError} = errors;

//Use in middleware
module.exports = someMiddleware(req, res, next) {
  next(new BadRequestError('Bad things happened'));
}

Issues & feature requests

Please report any bugs, issues, suggestions and feature requests in the @meanie/express-errors issue tracker.

Contributing

Pull requests are welcome! If you would like to contribute to Meanie, please check out the Meanie contributing guidelines.

Sponsor

This package has been kindly sponsored by Hello Club, an all in one club and membership management solution complete with booking system, automated membership renewals, online payments and integrated access and light control. Check us out if you happen to belong to any kind of club or if you know someone who helps run a club!

License

(MIT License)

Copyright 2016-2020, Adam Reis

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.