Chrome-performance-bug-mute.../node_modules/tiny-server
2023-02-18 18:51:49 +01:00
..
bin init 2023-02-18 18:51:49 +01:00
lib init 2023-02-18 18:51:49 +01:00
test init 2023-02-18 18:51:49 +01:00
index.js init 2023-02-18 18:51:49 +01:00
package.json init 2023-02-18 18:51:49 +01:00
README.md init 2023-02-18 18:51:49 +01:00

tiny-server

A tiny Web Server

Install

You can install to global

npm install -g tiny-server

or as a module

npm install tiny-server

Usage

global

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:

tiny-server ./www

You can export environment PORT value as the server's port:

export PORT=3001 && tiny-server;