1.0.2 • Published 5 years ago

nomi-error v1.0.2

Weekly downloads
3
License
ISC
Repository
github
Last release
5 years ago

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'));