1.0.2 • Published 6 years ago

stance v1.0.2

Weekly downloads
5
License
MIT
Repository
github
Last release
6 years ago

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

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago