1.0.0 • Published 2 years ago

fs-machine-ts-lib v1.0.0

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

��# Finite State Machine

A Typescript library to generate n states with n events

fs-machine is a typescript library to create finite state machine easily with type check safety

A finite automaton (FA) is a 5-tuple (Q,�,q0,F,�) where, Q is a finite set of states; � is a finite input alphabet; q0 " Q is the initial state; F �" Q is the set of accepting/final states; and �:Q���!Q is the transition function. For any element q of Q and any symbol �"�, we interpret �(q,�) as the state to which the FA moves, if it is in state q and receives the input �.

Features

  • Easy to use
  • Type Safety Checks
  • Independednt Events with the use of Async functionality

Tech

fs-machine uses TypeScript and Mocha for unit testing

Installation

fs-machine requires Node.js v10+ to run.

Install the package using npm.

npm install fs-machine