Chrome-performance-bug-mute.../node_modules/tiny-server/README.md

44 lines
533 B
Markdown
Raw Normal View History

2023-02-18 17:51:49 +00:00
# tiny-server
A tiny Web Server
## Install
You can install to global
```shell
npm install -g tiny-server
```
or as a module
```shell
npm install tiny-server
```
## Usage
### global
```shell
tiny-server
```
It will use terminal's current working directory as the web server's root directory.
And the server's port is 3000.
You can specify a path as web server's root directory:
```shell
tiny-server ./www
```
You can export environment `PORT` value as the server's port:
```shell
export PORT=3001 && tiny-server;
```