1.0.4 • Published 6 years ago

plain-server v1.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
6 years ago

plain-server

Serve Directories over HTTP at your favourite Port.

Installation

From Command Line:

npm install plain-server

Usage

  • Make a file "server.js".

  • Write below code in the file.

    const plainServer = require('plain-server');
    
    // serves 'build' directory at 6000 port
    plainServer('build', 6000);
    
    ...

    If port is not specified, then 1123 will be used as default port.

  • Run below command in the command line.

    node server.js

  • Now go to chrome and type url -

    http://localhost:6000

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago