Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation: Always refer to the latest stable version. #1849

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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