@brochington/automata
TypeScript icon, indicating that this package has built-in type declarations

0.0.5 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i @brochington/automata

Weekly Downloads

1

Version

0.0.5

License

MIT

Unpacked Size

1.88 MB

Total Files

27

Last publish

Collaborators

  • brochington