@7rabbit/tree

0.5.0 • Public • Published














tree

Object/Action Tree Resolver



IntroductionInstallationIllustration




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),
  )
}

Readme

Keywords

none

Package Sidebar

Install

npm i @7rabbit/tree

Weekly Downloads

3

Version

0.5.0

License

MIT

Unpacked Size

2.22 kB

Total Files

3

Last publish

Collaborators

  • lancejpollard