Socket
Book a DemoInstallSign in
Socket

koa-simple-web

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

koa-simple-web

A simple web server using Koa

Source
npmnpm
Version
1.3.0
Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

koa-simple-web

A simple web server using Koa

Usage

$ npm install koa-simple-web
const web = new SimpleWeb({ port: 8080 });

web.route(new (require("koa-router"))());
web.use(async (ctx) => {});

await web.start();
await web.stop();

Why?

When developing simple/small node HTTP services (eg: microservices) that don't require a big web framework, a simple web server that can started (and stopped) is needed.

There wasn't one before, so there is now.

License

MIT

Keywords

koa

FAQs

Package last updated on 04 Sep 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