courtesan

0.4.0 • Public • Published

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

Package Sidebar

Install

npm i courtesan

Weekly Downloads

3

Version

0.4.0

License

MIT

Unpacked Size

66.7 kB

Total Files

16

Last publish

Collaborators

  • brucou