npm.io
0.0.3 • Published 11 years ago

koa-epost

Licence
MIT
Version
0.0.3
Deps
0
Vulns
0
Weekly
0

Koa-Easy-Post

Simple Post Data Extraction for Koa

New in 0.0.3

Read data more efficiently.

Instead of a lengthy tutorial, have a look at the following example:

// Assume app to be a koa application instance

var post = require('koa-epost');

app.use(post);

app.use(function *(next) {
  this.body = 'Post data received: \n';
  this.body += JSON.stringify(this.post);
});

Keywords