-
Notifications
You must be signed in to change notification settings - Fork 16
/
http-server.cli.txt
19 lines (15 loc) · 1.8 KB
/
http-server.cli.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
HTTP-SERVER
http-server [DIR] #Node module (0.7.2) that starts a static file server (based on Ecstatic Node module) serving
#DIR (def: "."). Good for quick testing
-p NUM #Port (def: 8080)
-a IP #Déf: 0.0.0.0, i.e. localhost
-d BOOL #Enable directory browsing
-i BOOL #Show index while directory browsing
-e EXT #Default file extension (déf: none)
--silent #
--cors #Enable CORS
-o #Open browser window right away
-c NUM #Cache time (-1 to disable)
--ssl #Use HTTPS. Must then use --cert and --key (options to HTTPS.createServer())