Nothing Special   »   [go: up one dir, main page]

1.0.2 • Published 7 years ago

stance v1.0.2

Weekly downloads
5
License
MIT
Repository
github
Last release
7 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

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago