koa-trace-page

0.0.5 • Public • Published

koa-trace-page

a trace page for koa

Installation

$ npm install --save koa-trace-page

Usage

const tracePage = require('koa-trace-page')
 
async function (ctx next) {
  try {
    await next()
  } catch (err) {
    return tracePage(err, ctx, [options])
  }
}

options

  • options.logo: render String in html, ex: <span>Daze.js</span>
  • more...

Readme

Keywords

none

Package Sidebar

Install

npm i koa-trace-page

Weekly Downloads

1

Version

0.0.5

License

MIT

Unpacked Size

487 kB

Total Files

16

Last publish

Collaborators

  • zewail