[ ![Codeship Status for mu-js/mu](https://codeship.com/projects/9e6c3aa0-d405-0131-47c8-626ecd3cbf64/status?branch=master)](https://codeship.com/projects/23544)

## Mu

[Koa](https://github.com/koajs/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

```js
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

