20
									
								
								README.md
									
									
									
									
									
								
							
							
						
						
									
										20
									
								
								README.md
									
									
									
									
									
								
							@ -21,26 +21,26 @@ $ npm install -g local-web-server
 | 
				
			|||||||
Usage
 | 
					Usage
 | 
				
			||||||
-----
 | 
					-----
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
ws [--directory|-d <directory>] [--port|-p <port>] [--log-format|-f dev|default|short|tiny]
 | 
					usage: ws [--directory|-d <directory>] [--port|-p <port>] [--log-format|-f dev|default|short|tiny]
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
From the folder you wish to serve, run:
 | 
					From the folder you wish to serve, run:
 | 
				
			||||||
<pre>
 | 
					```sh
 | 
				
			||||||
$ ws
 | 
					$ ws
 | 
				
			||||||
serving at <u>http://localhost:8000</u>
 | 
					serving at http://localhost:8000
 | 
				
			||||||
</pre>
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
If you wish to serve a different directory, run:
 | 
					If you wish to serve a different directory, run:
 | 
				
			||||||
<pre>
 | 
					```sh
 | 
				
			||||||
$ ws -d ~/mysite/
 | 
					$ ws -d ~/mysite/
 | 
				
			||||||
serving <u>/Users/Lloyd/mysite</u> at <u>http://localhost:8000</u>
 | 
					serving ~/mysite at http://localhost:8000
 | 
				
			||||||
</pre>
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
If you wish to override the default port (8000), use `--port` or `-p`:
 | 
					If you wish to override the default port (8000), use `--port` or `-p`:
 | 
				
			||||||
<pre>
 | 
					```sh
 | 
				
			||||||
$ ws --port 9000
 | 
					$ ws --port 9000
 | 
				
			||||||
serving at <u>http://localhost:9000</u>
 | 
					serving at http://localhost:9000
 | 
				
			||||||
</pre>
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Use a built-in or custom [Connect logger format](http://www.senchalabs.org/connect/logger.html) with `--log-format`:
 | 
					Use a built-in or custom [Connect logger format](http://www.senchalabs.org/connect/logger.html) with `--log-format`:
 | 
				
			||||||
```sh
 | 
					```sh
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user