npm.io
1.0.2 • Published 7 years ago

nomi-error

Licence
ISC
Version
1.0.2
Deps
4
Size
5 kB
Vulns
2
Weekly
0

nomi-error

the error middleware for nomi framework.

Installation

$ npm install nomi-error --save

Node.js >= 8.0.0 required.

Usage


const error = require('nomi-error');
const Koa = require('koa');
const app = new Koa();
const options = {
  accepts: ['html', 'text', 'json']
}
app.use(error('html', 'text', 'json'));

Keywords