Skip to content

Commit bf8d757

Browse files
Colin Roacheindexzero
authored andcommitted
Update README to reflect available options
1 parent 419d948 commit bf8d757

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@
99
Installation via `npm`. If you don't have `npm` yet:
1010

1111
curl https://npmjs.org/install.sh | sh
12-
12+
1313
Once you have `npm`:
1414

1515
npm install http-server -g
16-
16+
1717
This will install `http-server` globally so that it may be run from the command line.
1818

1919
## Usage:
@@ -46,22 +46,22 @@ This will install `http-server` globally so that it may be run from the command
4646

4747
## Available Options:
4848

49-
`-p` Port to listen for connections on (defaults to 8080)
49+
`-p` Port to use (defaults to 8080)
5050

51-
`-a` Address to bind to (defaults to '0.0.0.0')
51+
`-a` Address to use (defaults to 0.0.0.0)
5252

5353
`-d` Show directory listings (defaults to 'True')
5454

5555
`-i` Display autoIndex (defaults to 'True')
5656

57-
`-e` or `--ext` Default file extension (defaults to 'html')
57+
`-e` or `--ext` Default file extension if none supplied (defaults to 'html')
5858

59-
`-s` or `--silent` In silent mode, log messages aren't logged to the console.
59+
`-s` or `--silent` Suppress log messages from output
6060

61-
`--cors` Enable CORS via the 'Access-Control-Allow-Origin' header".
61+
`--cors` Enable CORS via the `Access-Control-Allow-Origin` header
6262

63-
`-o` or Open browser window after staring the server".
63+
`-o` Open browser window after staring the server
6464

65-
`-h` or `--help` Displays a list of commands and exits.
65+
`-h` or `--help` Print this list and exit.
6666

6767
`-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

Comments
 (0)