0.1.6 • Published 9 years ago

mu-js v0.1.6

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

Codeship Status for mu-js/mu

Mu

Koa style micro services for intraprocess communication.

Installation

npm install mu-js

Mu works on the same versions of iojs and node as Koa.

Example

var mu = require('mu-js');
var co = require('co');
var app = mu.service();


app
.use(function *() {
  if (this.method === 'GET' && this.path === 'echo') {
    this.body = this.body;
  }
});


co(function *() {
  // res : "hello world"
  var res = yield mu.request(app).get('echo', 'hello world');
});

License

MIT

0.1.6

9 years ago

0.1.5

9 years ago

0.1.4

9 years ago

0.1.3

9 years ago

0.1.2

9 years ago

0.1.1

9 years ago

0.1.0

9 years ago