Skip to content

adriancooney/koamotive

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

The Koa Express. A Koa-Express hybrid.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published