## Modules
Files module.
The dev-toolbox module.
Server module.
The TempServer module.
stringReturns a normalized path.
stringReturns a normalized path relative to the project's root directory.
stringReturns the host.
numberReturns a free port.
stringReturns the URL. The default URL is "http://127.0.0.1:8080".
Promise.<TempServer>Starts a temporary server for testing purposes.
string
* [.port](#TempServer+port) ⇒ number
* [.start()](#TempServer+start) ⇒ [Promise.<TempServer>](#TempServer)
* [.stop()](#TempServer+stop) ⇒ [Promise.<TempServer>](#TempServer)
### new TempServer(host, port)
Creates a temporary server for test purposes.
| Param | Type | Description |
|---|---|---|
| host | string | The port of the temporary server. |
| port | number | The port of the temporary server. |
string
Returns the host.
**Kind**: instance property of [TempServer](#TempServer)
**Returns**: string - The host.
### tempServer.port ⇒ number
Returns the port.
**Kind**: instance property of [TempServer](#TempServer)
**Returns**: number - The port.
### tempServer.start() ⇒ [Promise.<TempServer>](#TempServer)
Starts the temporary server.
**Kind**: instance method of [TempServer](#TempServer)
### tempServer.stop() ⇒ [Promise.<TempServer>](#TempServer)
Stops the temporary server.
**Kind**: instance method of [TempServer](#TempServer)
## path(path) ⇒ string
Returns a normalized path.
**Kind**: global function
**Returns**: string - The normalized path.
| Param | Type | Description |
|---|---|---|
| path | string | The path to be normalized. |
string
Returns a normalized path relative to the project's root directory.
**Kind**: global function
**Returns**: string - The normalized path relative to the project's root directory.
| Param | Type | Description |
|---|---|---|
| [path] | string | The path to use to normalize. If none given, only the project's root directory will be used. |
string
Returns the host.
**Kind**: global function
**Returns**: string - The host.
| Param | Type | Description |
|---|---|---|
| [host] | string | The host. The default host is "127.0.0.1". |
number
Returns a free port.
**Kind**: global function
**Returns**: number - The free port.
| Param | Type | Description |
|---|---|---|
| [port] | number | The port. If no port given, the default port is 8080. |
string
Returns the URL. The default URL is "http://127.0.0.1:8080".
**Kind**: global function
**Returns**: string - The URL with the given port.
| Param | Type | Description |
|---|---|---|
| [host] | string | The host. The default host is "127.0.0.1". |
| [port] | number | The port. If no port given, the default port is 8080. |
Promise.<TempServer>](#TempServer)
Starts a temporary server for testing purposes.
**Kind**: global function
| Param | Type | Description |
|---|---|---|
| [...args] | * | If one argument is specified, that will be the (port). If two arguments, they will be the (host, port). |