Socket
Socket
Sign inDemoInstall

vray

Package Overview
Dependencies
Maintainers
1
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vray

koa 2 ksyun middleware


Version published
Weekly downloads
7
increased by250%
Maintainers
1
Weekly downloads
 
Created
Source

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);

FAQs

Package last updated on 15 Apr 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc