Socket
Socket
Sign inDemoInstall

koa-rtapi

Package Overview
Dependencies
6
Maintainers
1
Versions
71
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

koa-rtapi


Version published
Maintainers
1
Install size
6.77 MB
Created

Readme

Source

koa-rtapi

简介

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

初始化

npm init -y && npm i koa-rtapi && npx koa-rtapi-init && node index

更新

npm update koa-rtapi

启动

node index

文件说明

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

FAQs

Last updated on 16 May 2019

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc