2.0.3 • Published 1 year ago

it-fsm v2.0.3

Weekly downloads
10
License
GPL-3.0-or-later
Repository
-
Last release
1 year ago

IT FSM

Simple finite state machine

Build Status Coverage Status

Installation

npm install --save it-fsm

Usage

import { StateMachine } from 'it-fsm';

const fsm = new StateMachine('TODO', {
  TODO: {
    complete: 'COMPLETE'
  }
})


if (fsm.can('complete')) {
  fsm.complete().then(() => {
    
  })
}
// or
if (fsm.canToState('COMPLETE')) {
  fsm.complete().then(() => {
    
  });
}
2.0.3

1 year ago

2.0.2

1 year ago

2.0.1

2 years ago

2.0.0

3 years ago

1.0.8

3 years ago

1.0.7

4 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago