Socket
Socket
Sign inDemoInstall

koa-rtapi

Package Overview
Dependencies
Maintainers
1
Versions
71
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

koa-rtapi

koa api in rtworld company


Version published
Weekly downloads
9
increased by28.57%
Maintainers
1
Weekly downloads
 
Created
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

Package last updated on 09 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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc