Narrating Prophetic Monks
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

mu-js

0.1.6 • Public • Published

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

install

npm i mu-js

Downloadsweekly downloads

0

version

0.1.6

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability