0.0.32 • Published 5 years ago

status-machina v0.0.32

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

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

Moore example Todo example

Mealy machines

  • States and transitions
  • Transitions produces output depending on the input

Other features

  • Broadcast communication (events)
  • Actions (Before, After)

Install

npm i status-machina

Development

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 i

Tests

npm test
npm run test:watch

Examples

Go to examples directory.

License

MIT © Luís Antunes

0.0.32

5 years ago

0.0.31

5 years ago

0.0.30

5 years ago

0.0.29

5 years ago

0.0.28

5 years ago

0.0.27

5 years ago

0.0.26

5 years ago

0.0.25

5 years ago

0.0.24

5 years ago

0.0.23

5 years ago

0.0.22

5 years ago

0.0.21

5 years ago

0.0.19

5 years ago

0.0.17

5 years ago

0.0.16

5 years ago

0.0.15

5 years ago

0.0.14

5 years ago

0.0.13

5 years ago

0.0.12

5 years ago

0.0.11

5 years ago

0.0.10

5 years ago

0.0.9

5 years ago

0.0.8

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago