state-machine-js (npm): A simple utility that allows you to define states and actions to transition between them
Keywords: fsm|state|statemachine