Socket
Book a DemoInstallSign in
Socket

@ow-framework/koa

Package Overview
Dependencies
Maintainers
9
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ow-framework/koa

The power and elegance of [koa](https://github.com/koajs/koa) in your [@ow-framework](https://github.com/ow-framework/ow-packages) application.

latest
npmnpm
Version
4.0.0
Version published
Maintainers
9
Created
Source

@ow-framework/koa

The power and elegance of koa in your @ow-framework application.

Install

yarn add @ow-framework/koa

Usage

import Ow from '@ow-framework/core';
import OwKoa from '@ow-framework/koa';

const app = new Ow();

app.addModules([
  OwKoa
]);

app.start();

This will start a server, listening on process.env.port or some random port if it's not specified.

Usage with options

import Ow from '@ow-framework/core';
import OwKoa from '@ow-framework/koa';

const app = new Ow();
const Koa = new OwKoa(app, {
  port: 7777
})

app.addModules([
  Koa
]);

app.start();

FAQs

Package last updated on 14 Jul 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