# milu

> The two-way function tree

Latest version **1.1.2** (published 2016-10-14) · MIT license · 0 weekly downloads

## Install

```sh
npm install milu
pnpm add milu
yarn add milu
bun add milu
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.2 |
| Published | 2016-10-14 |
| First published | 2015-01-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Nanqiao Deng |
| Maintainers | nqdeng |
| Keywords | utilities, util, task |

## Links

- npm: https://www.npmjs.com/package/milu
- Repository: https://github.com/tianmajs/milu
- Homepage: https://github.com/tianmajs/milu#readme
- Issues: https://github.com/tianmajs/milu/issues
- npm.io page: https://npm.io/package/milu

## Dependencies (1)

- [mini-co](https://npm.io/package/mini-co.md) ~1.0.0

## Alternatives

- [lodash.assign](https://npm.io/package/lodash.assign.md) — 2.3M weekly downloads
- [lodash.chunk](https://npm.io/package/lodash.chunk.md) — 1.8M weekly downloads
- [react-native-ios-utilities](https://npm.io/package/react-native-ios-utilities.md) — 138.5K weekly downloads
- [@technically/lodash](https://npm.io/package/@technically/lodash.md) — 50.9K weekly downloads
- [@fluid-topics/ft-icon](https://npm.io/package/@fluid-topics/ft-icon.md) — 20.6K weekly downloads

## Recent versions

- 1.1.2 (latest) — 2016-10-14
- 1.1.1 — 2015-03-04
- 1.1.0 — 2015-03-04
- 1.0.0 — 2015-01-14

## README

# milu

![build status](https://travis-ci.org/tianmajs/milu.svg?branch=master)

“麋鹿”

## Install

    npm install milu

## Usage

    var milu = require('milu');

    var verb = {
      is: function (type) {
        return function *(next) {
          if (this.type === type) {
            yield next;
          }
        };
      },
      say: function (word) {
        return function *(next) {
          console.log(word);
        };
      },
    };

    var root = milu(verb);

    root.is('cat').then
        .say('miao')
        .end
      .is('dog').then
        .say('wang')
        .end;

    root.run({ type: 'cat' }, function (err) {
      // ...
    });

  

## LICENSE

[MIT](https://github.com/tianmajs/tianmajs.github.io/blob/master/LICENSE)

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