GitHub - zbinlin/tiny-server: A tiny Web Server

Skip to content

Navigation Menu

Sign in

Appearance settings

tiny-server

A tiny Web Server

Install

You can install to global

npm install -g tiny-server

or as a module

Usage

global

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:

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

export PORT=3001 && tiny-server;