Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

courtesan

brucou15MIT0.4.0

Rule like a king, debug like a courtesan - whatever that means

state, machine, dev, tools, chrome

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.

Screenshot

screenshot