stance
1.0.2 • Public • Published Stance
Simple finite state machine for data managment.
Install via NPM
npm install --save stance
Usage
import Stance from 'stance';
const stance = new Stance(['a', 'b']);
console.log(stance.is('a'));
console.log(stance.is('b'));
stance.to('b');
console.log(stance.is('a'));
console.log(stance.is('b'));
License: MIT
Package Sidebar
Install
Weekly Downloads