Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

FSM

1.0.3 • Public • Published

Finite State Machine (FSM)

Build Status

A minimal finite state machine (FSM) for Javascript.

Install

Using bower

bower install --save FSM

Using npm

npm install --save FSM

Building

To build the library you'll need to use Grunt. First install the required node modules (grunt-cli must be installed):

git clone https://github.com/GetmeUK/FSM.git
cd FSM
npm install

Then run grunt build to build the project.

Testing

To test the library you'll need to use Jasmine. First install Jasmine:

git clone https://github.com/pivotal/jasmine.git
mkdir FSM/jasmine
mv jasmine/dist/jasmine-standalone-2.0.3.zip FSM/jasmine
cd FSM/jasmine
unzip jasmine-standalone-2.0.3.zip

Then open FSM/SpecRunner.html in a browser to run the tests.

Alternatively you can use grunt jasmine to run the tests from the command line.

Documentation

Full documentation is available at http://getcontenttools.com/api/fsm

Browser support

  • Chrome
  • Firefox
  • IE9+

Install

npm i FSM

DownloadsWeekly Downloads

10

Version

1.0.3

License

none

Last publish

Collaborators

  • avatar