Socket
Book a DemoInstallSign in
Socket

express-errs

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

express-errs

Rails-inspired error handler for Express applications

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

express-errors

Express middleware for displaying Rails-inspired error pages for development environments with error name, message, stack trace and extracted code around source of error.

Note: It does not swallow errors, they still get the same usual output in the console.

Tip: Looking for koa version?

Installation

$ npm install express-errs --save

Question: Why is the name so weird? Because express is so popular, it was impossible to find a normal name for this package.

Usage

var express = require('express');
var errors = require('express-errs');

var app = express();

app.get('/', function (req, res) {
  throw new Error('Oh no!');
  
  res.end('Oh yes!');
});

app.use(errors());

app.listen(3000);

License

express-errors is released under the MIT license.

Keywords

express

FAQs

Package last updated on 13 Mar 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts