Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

koamotive

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

koamotive

The Koa Express

latest
Source
npmnpm
Version
0.0.1
Version published
Maintainers
1
Created
Source

Koamotive

Koamotive is an attempt to implement functionality lost in the transition from Express to Koa.

Usage

Koamotive just an extension of the koa object so it works as a drop in replacment. First install via npm:

$ npm install koamotive

Next, require koamotive instead of koa.

var koa = require("koamotive"),
	app = koa();

app.use(function*() {}); // Everything works as expected

// New koamotive methods
app.get("/path", function*() {
	this.body = "Hello world!";
});

app.listen(80);

Features

Router

Basic router functionality. app.[get|post|put|delete](path, callback).

Example:

app.get("/home", function*() {
	this.body = "Hello world!";
});

License

MIT

FAQs

Package last updated on 26 Dec 2013

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