Automata
A powerful async finite state machine.
const fsm = new Automata({
initial: 'a',
states: {
a: ({ next }) => next('b'),
b: ({ next }) => next('c'),
c: { final: true },
},
});
A powerful async finite state machine.
const fsm = new Automata({
initial: 'a',
states: {
a: ({ next }) => next('b'),
b: ({ next }) => next('c'),
c: { final: true },
},
});
npm i @brochington/automata
1
0.0.5
MIT
1.88 MB
27