# mu-js

> micro services in js

Latest version **0.1.6** (published 2015-04-06) · MIT license · 0 weekly downloads

## Install

```sh
npm install mu-js
pnpm add mu-js
yarn add mu-js
bun add mu-js
```

## Health

**Score 5/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: insecure dependencies; abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.6 |
| Published | 2015-04-06 |
| First published | 2015-03-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 8 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Josh Taylor |
| Maintainers | joshrtay |
| Keywords | microservice, co |

## Links

- npm: https://www.npmjs.com/package/mu-js
- Repository: git@github.com:mu-js/mu
- Homepage: https://github.com/mu-js/mu
- Issues: https://github.com/mu-js/mu/issues
- npm.io page: https://npm.io/package/mu-js

## Dependencies (8)

- [co](https://npm.io/package/co.md) ^4.5.1
- [extend](https://npm.io/package/extend.md) ^2.0.0
- [methods](https://npm.io/package/methods.md) ^1.1.1
- [no-iits](https://npm.io/package/no-iits.md) git://github.com/weo-edu/no-iits
- [parseurl](https://npm.io/package/parseurl.md) ^1.3.0
- [delegates](https://npm.io/package/delegates.md) ^0.1.0
- [mu-compose](https://npm.io/package/mu-compose.md) git://github.com/mu-js/compose
- [component-inherit](https://npm.io/package/component-inherit.md) 0.0.3

## Alternatives

- [flatbuffers](https://npm.io/package/flatbuffers.md) — 6.0M weekly downloads
- [jwt-simple](https://npm.io/package/jwt-simple.md) — 259.5K weekly downloads
- [@exodus/patch-broken-hermes-typed-arrays](https://npm.io/package/@exodus/patch-broken-hermes-typed-arrays.md) — 28.5K weekly downloads
- [@native-to-anchor/buffer-layout](https://npm.io/package/@native-to-anchor/buffer-layout.md) — 12.2K weekly downloads
- [binary-parser-encoder](https://npm.io/package/binary-parser-encoder.md) — 5.3K weekly downloads

## Recent versions

- 0.1.6 (latest) — 2015-04-06
- 0.1.5 — 2015-03-25
- 0.1.4 — 2015-03-25
- 0.1.3 — 2015-03-20
- 0.1.2 — 2015-03-20
- 0.1.1 — 2015-03-20
- 0.1.0 — 2015-03-20

## README

[ ![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

---
_Source: https://npm.io/package/mu-js · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
