Socket
Socket
Sign inDemoInstall

koa-rtapi

Package Overview
Dependencies
70
Maintainers
1
Versions
71
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    koa-rtapi

koa api in rtworld company


Version published
Maintainers
1
Install size
1.81 MB
Created

Readme

Source

koa-rtapi

简介

  • 创建一个http服务器 (koa2)
  • 简化的基于文件的api路由
  • 支持 request.body(koa-bodyparser)跨域(koa2-cors)静态服务(koa-static)

初始化

npm init -y && npm i koa-rtapi && node .\node_modules\koa-rtapi\demo-init && --start--

更新

npm update koa-rtapi

启动

node index

文件说明

  • index.js 启动和配置
  • api/ 放api文件
  • www/ 放静态文件

FAQs

Last updated on 22 Apr 2019

Did you know?

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc