Skip to content

Commit

Permalink
Documentation: Always refer to the latest stable version.
Browse files Browse the repository at this point in the history
Refs #1589
Closes gh-1849
  • Loading branch information
ariya committed Aug 21, 2017
1 parent bdcbf53 commit 42b6b8c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ To verify that the module is available, use `npm ls`:
```
$ npm ls
/home/ariya/demo
└── esprima@3.1.3
└── esprima@4.0.0
```

The number after the `@` symbol, `3.1.3`, indicates the version of [Esprima package](https://www.npmjs.com/package/esprima) downloaded and installed from the package registry. This may vary from time to time, depending on the latest stable version available for everyone.
The number after the `@` symbol, `4.0.0`, indicates the version of [Esprima package](https://www.npmjs.com/package/esprima) downloaded and installed from the package registry. This may vary from time to time, depending on the latest stable version available for everyone.

To play with Esprima within Node.js, first launch Node.js. Inside its [REPL](https://en.wikipedia.org/wiki/REPL) command prompt, load the module using `require` and then use it, as illustrated in the following session:

Expand Down Expand Up @@ -69,7 +69,7 @@ To use Esprima in a library or an application designed to be used with Node.js,
To use Esprima in a browser environment, it needs to be loaded using the `script` element. For instance, to load Esprima from a CDN such as [unpkg](https://unpkg.com/), the HTML document needs to have the following line:

```html
<script src="https://unpkg.com/esprima@~3.1/dist/esprima.js"></script>
<script src="https://unpkg.com/esprima@~4.0/dist/esprima.js"></script>
```

When Esprima is loaded this way, it will be available as a global object named `esprima`.
Expand Down

0 comments on commit 42b6b8c

Please sign in to comment.