|
9 | 9 | Installation via `npm`. If you don't have `npm` yet: |
10 | 10 |
|
11 | 11 | curl https://npmjs.org/install.sh | sh |
12 | | - |
| 12 | + |
13 | 13 | Once you have `npm`: |
14 | 14 |
|
15 | 15 | npm install http-server -g |
16 | | - |
| 16 | + |
17 | 17 | This will install `http-server` globally so that it may be run from the command line. |
18 | 18 |
|
19 | 19 | ## Usage: |
@@ -46,22 +46,22 @@ This will install `http-server` globally so that it may be run from the command |
46 | 46 |
|
47 | 47 | ## Available Options: |
48 | 48 |
|
49 | | -`-p` Port to listen for connections on (defaults to 8080) |
| 49 | +`-p` Port to use (defaults to 8080) |
50 | 50 |
|
51 | | -`-a` Address to bind to (defaults to '0.0.0.0') |
| 51 | +`-a` Address to use (defaults to 0.0.0.0) |
52 | 52 |
|
53 | 53 | `-d` Show directory listings (defaults to 'True') |
54 | 54 |
|
55 | 55 | `-i` Display autoIndex (defaults to 'True') |
56 | 56 |
|
57 | | -`-e` or `--ext` Default file extension (defaults to 'html') |
| 57 | +`-e` or `--ext` Default file extension if none supplied (defaults to 'html') |
58 | 58 |
|
59 | | -`-s` or `--silent` In silent mode, log messages aren't logged to the console. |
| 59 | +`-s` or `--silent` Suppress log messages from output |
60 | 60 |
|
61 | | -`--cors` Enable CORS via the 'Access-Control-Allow-Origin' header". |
| 61 | +`--cors` Enable CORS via the `Access-Control-Allow-Origin` header |
62 | 62 |
|
63 | | -`-o` or Open browser window after staring the server". |
| 63 | +`-o` Open browser window after staring the server |
64 | 64 |
|
65 | | -`-h` or `--help` Displays a list of commands and exits. |
| 65 | +`-h` or `--help` Print this list and exit. |
66 | 66 |
|
67 | 67 | `-c` Set cache time (in seconds) for cache-control max-age header, e.g. -c10 for 10 seconds. To disable caching, use -c-1. |
0 commit comments