npm.io
1.1.1 • Published 4 years agoCLI

tiny-server

Licence
MIT
Version
1.1.1
Deps
0
Size
10 kB
Vulns
0
Weekly
0
Stars
4

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;

Keywords