0.0.3 • Published 9 years ago

koa-epost v0.0.3

Weekly downloads
2
License
MIT
Repository
github
Last release
9 years ago

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);
});