@zcorky/koa-logger
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

koa-logger

NPM version Coverage Status Dependencies Build Status license issues

Deep Diff & Patch in js, maybe data visition timeline json data is common for use. Diff => CREATE / UPDATE / DELETE / UNCHANGE Data. Patch => Immutable Philosophy Data.

Install

$ npm install @zcorky/koa-logger

Usage

// See more in test
import logger from '@zcorky/koa-logger';

import * as Koa from 'koa';
const app = new Koa();
app.use(logger());
app.use(async (ctx) => {
  if (ctx.path === '/') {
    ctx.body = 'hello, world';
  } else if (ctx.path === '/json') {
    ctx.body = {
      name: 'name',
      value: 'value',
    };
  }
});

app.listen(8000, '0.0.0.0', () => {
  console.log('koa server start');
});

Related

Readme

Keywords

none

Package Sidebar

Install

npm i @zcorky/koa-logger

Weekly Downloads

1

Version

0.0.2

License

MIT

Unpacked Size

6.16 kB

Total Files

5

Last publish

Collaborators

  • uniquecolesmith