p_tinyfsm

1.0.4 • Public • Published

p_tinyfsm

tiny finite-state-machine for Promise

small example

require('p_tinyfsm')({lgc:{S:()=>(console.log('S'),{STS:'OK'}),E:()=>(console.log('E'),{STS:'OK'})},fsm:`
S.OK=>E
E.OK=>S
`}).then(rst=>console.log(rst))

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i p_tinyfsm

      Weekly Downloads

      2

      Version

      1.0.4

      License

      ISC

      Unpacked Size

      1.51 kB

      Total Files

      3

      Last publish

      Collaborators

      • cmptech