status-machina v0.0.32
status-machina
a device that can be in one of a set number of stable conditions depending on its previous condition and on the present values of its inputs
The complete documentation can be found here
State machines types
Although the citation, for now status-machina has the following machines and features implemented. If appropriate an example will be given.
Moore machines
- States and transitions
- States produces output
Mealy machines
- States and transitions
- Transitions produces output depending on the input
Other features
- Broadcast communication (events)
- Actions (Before, After)
Install
npm i status-machinaDevelopment
Open a pull request when you're ready.
Don't forget to add your tests.
git clone https://github.com/luisantunesdeveloper/status-machina.git
cd status-machina && npm iTests
npm testnpm run test:watchExamples
Go to examples directory.
License
MIT © Luís Antunes
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago