rxjs-fsm

An rxjs finite statemachine, i needed one for an Angular project but the code i made is just rxjs and typescript

Usage no npm install needed!

<script type="module">
  import rxjsFsm from 'https://cdn.skypack.dev/rxjs-fsm';
</script>

README

rxjs-fsm https://travis-ci.org/KevCJones/rxjs-fsm.svg?branch=master

Just a finite statemachine done with RXJS. Will need some love before its production ready like tests, but it's not complicated, so it's probably safe if you need it, use it.

Why?

Because i needed it, and it was a good test of remind myself how to write one but to write one using rxjs.

Examples

Stackblitz playground

https://stackblitz.com/edit/stripe-fsm-npm

TODO

  • Write better docs
  • Add some examples
  • Consider visual outputs for FSM