Skip to content

williamkwg/nomi-error

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

nomi 的 error 处理 中间件

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published