Have ideas to improve npm?Join in the discussion! »

vray

3.1.16 • Public • Published

vray

扩展koa , 添加默认中间件

append interface

.mountDefaultMiddle //装载默认插件 , 如安全头等
.mountStatic(...<string> | ...<array>) //静态Server插件
.mountProxy(...<obj> | ...<array>) //代理插件
.mountMiddle(...<string> | ...<function>) //安装扩展插件

add options in constructor

使用winstonjs记录日志

constructor({
    log //日志配置信息
})

use

const Vray = require('vray')
const app = new Vray()
app.listen(settings.port, settings.host);

Keywords

none

Install

npm i vray

DownloadsWeekly Downloads

5

Version

3.1.16

License

MIT

Unpacked Size

17.3 kB

Total Files

21

Last publish

Collaborators

  • avatar