Skip to content

Commit 6904a2e

Browse files
committed
added npm install instructions
1 parent 90b9814 commit 6904a2e

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

README.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,14 @@ This standalone javascript micro-framework provides a finite state machine for y
77
* You can find a [description here](http://codeincomplete.com/posts/2013/1/26/javascript_state_machine_v2_2_0/)
88
* You can find a [working demo here](http://codeincomplete.com/posts/2011/8/19/javascript_state_machine_v2/example/)
99

10-
This library has also been ported to:
11-
12-
* [Go](https://github.com/looplab/fsm) by @maxpersson
13-
* [Python](https://github.com/oxplot/fysom) by @oxplot
14-
1510
Download
1611
========
1712

18-
You can download [state-machine.js](https://github.com/jakesgordon/javascript-state-machine/raw/master/state-machine.js),
13+
Using npm:
14+
15+
npm install --save javascript-state-machine
16+
17+
Download [state-machine.js](https://github.com/jakesgordon/javascript-state-machine/raw/master/state-machine.js),
1918
or the [minified version](https://github.com/jakesgordon/javascript-state-machine/raw/master/state-machine.min.js)
2019

2120
Alternatively:
@@ -33,7 +32,7 @@ Alternatively:
3332
Usage
3433
=====
3534

36-
Include `state-machine.js` in your web application, or, for nodejs `require("javascript-state-machine.js")`.
35+
Include `state-machine.js` in your web application, or, for npm `require("javascript-state-machine")`.
3736

3837
In its simplest form, create a standalone state machine using:
3938

0 commit comments

Comments
 (0)