courtesan
v0.4.0
Published
Rule like a king, debug like a courtesan - whatever that means
Downloads
14
Readme
Motivation
This package supports the Kingly state machine library with a tracing extension. Kingly has a devtool which is very strongly inspired from the previous excellent work of Krasimir Tsonev with Kuker.
Kingly developers must first download the courtesan extension of the Chrome store. Then, for Kingly to send messages to the dev tool, you will need to create a Kingly state machine as follows:
import {tracer} from "courtesan";
...
const fsm = createStateMachine(fsmDef, {debug:{console}, devTool:{tracer}});
As you can see, the devTool
parameter admits the tracer
property whose interface is implemented by the courtesan
library.