0.5.0 • Published 5 years ago

@7rabbit/tree v0.5.0

Weekly downloads
-
License
MIT
Repository
github
Last release
5 years ago

Introduction

Installation

npm install @7rabbit/tree

Illustration

import tree from '@7rabbit/tree'

const Ink = require('@7rabbit/ink')
const tree = require('./')

const ink = new Ink()
ink.attachModule(tree(mount))
ink.invokeAction('start').then(x => console.log(x))

function mount({ stack, field, route, batch, cause, queue }) {
  return stack(
    field('foo', 5),
    route('foo', foo),
    route('bar', bar),
    route('baz', baz),
    route('start', start),
  )
}