0.0.4 • Published 6 years ago

bduck v0.0.4

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

介绍

为了学习koa, 查看koa源码并使用typescript重写的一个项目

安装

npm install bduck

使用

const BDuck = require('bduck');

const app = new BDuck();

app.use((ctx, next) => {
  ctx.status = 200;
  ctx.body = '启动了!!!'
  next()
});

app.listen(3000, () => {
  console.log(`程序已经在3000端口上跑起来了!!!`)
})
0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago