npm install @ferrow/state-machineDefine complex workflows declaratively.
const machine = new StateMachine({
initial: 'idle',
states: {
idle: { on: { START: 'running' } },
running: { on: { PAUSE: 'paused', STOP: 'idle' } },
paused: { on: { RESUME: 'running' } }
}
});Solves: Complex workflow logic, state management, error handling. License: MIT
Sponsored by Ferrow
Part of the ferrow-toolkit collection · Sponsored by Ferrow