File tree Expand file tree Collapse file tree 1 file changed +27
-5
lines changed Expand file tree Collapse file tree 1 file changed +27
-5
lines changed Original file line number Diff line number Diff line change 2
2
3
3
# Download and install
4
4
5
- For browser-like environments: [ download] ( https://github.com/jshint/jshint/raw/master/dist/jshint.js ) .
5
+ JSHint runs in a number of different environments; installation is different
6
+ for each.
6
7
7
- For Rhino: [ download ] ( https://github.com/jshint/jshint/raw/master/dist/jshint-rhino.js ) .
8
+ ### Browser-like environments
8
9
9
- ### Node (with NPM)
10
+ A standalone files is built for browser-like environments with every release.
11
+ You'll find it in the ` dist ` directory of the download. [ Download the latest
12
+ release here] ( https://github.com/jshint/jshint/releases/latest ) .
13
+
14
+ ### Rhino
15
+
16
+ A standalone files is built for Mozilla's [ Rhino JavaScript
17
+ engine] ( http://www.mozilla.org/rhino ) with every release. You'll find it in
18
+ the ` dist ` directory of the download. [ Download the latest release
19
+ here] ( https://github.com/jshint/jshint/releases/latest ) .
20
+
21
+ ### Node.js
10
22
11
23
![ NPM version] ( https://badge.fury.io/js/jshint.png )
12
24
13
- From your command line run the following command (add ` -g ` to install globally on your system):
25
+ Each release of JSHint is published to [ npm] ( https://npmjs.org ) , the package
26
+ manager for [ the Node.js platform] ( https://nodejs.org ) .
27
+
28
+ You may ** install it globally** using the following command:
29
+
30
+ npm install -g jshint
31
+
32
+ After this, you can use the ` jshint ` command-line interface.
33
+
34
+ It is common to install JSHint as a development dependency within an existing
35
+ Node.js project:
14
36
15
- npm install jshint
37
+ npm install --save-dev jshint
16
38
17
39
### Plugins for text editors and IDEs
18
40
You can’t perform that action at this time.
0 commit comments