koa-app
0.1.1 • Public • Published koa-app
An opinionated selection of koa middlewares/plugins to boost the project scaffolding.
忍受不了每次新建一个koa应用都要不断的去npm install
各种middlewares
,那就试试这个吧。
我不做框架,只做大自然的搬运工!
Bundled Middlewares
- koa-body
- koa-flash
- koa-gzip
- koa-i18n
- koa-locale
- koa-locals
- koa-methodoverride
- koa-sess
- koa-static
Usage
var koa = require("koa-app");
var app = koa();
app.configure({
statics: ["folder1", "folder2"],
session: {},
i18n: {}
generateKey: true
});
app.listen({
port: 8080,
secured: true,
certs: {
key: "xxxx",
cert: xxx
},
autoDrop: true
}, function() {
console.log("app is up and running");
});
License
See LICENSE
Versions
Current Tags
- VersionDownloads (Last 7 Days)
- 0.1.1
0
Version History
Package Sidebar
Install
Weekly Downloads