stance

1.0.2 • Public • Published

Stance

Simple finite state machine for data managment.

GitHub: link

NPM: link

Install via NPM

npm install --save stance

Usage

import Stance from 'stance';
 
const stance = new Stance(['a', 'b']);
console.log(stance.is('a')); // true
console.log(stance.is('b')); // false
 
stance.to('b');
console.log(stance.is('a')); // false
console.log(stance.is('b')); // true

License: MIT

Readme

Keywords

Package Sidebar

Install

npm i stance

Weekly Downloads

1

Version

1.0.2

License

MIT

Last publish

Collaborators

  • snowshield