1.1.1 • Published 4 years ago

merely-server v1.1.1

Weekly downloads
4
License
MIT
Repository
github
Last release
4 years ago

Merely Server

This package contains dependency-free NodeJS script to create and start local server

Installation

npm install merely-server

Usage

> npm install -g merely-server
> cd site/path/
> merely-server [options]

Options:

  • --port set port for server. Default value: 8080. Example: merely-server --port 3000
  • --help, -h output usage information

Highlights

Script For Local Server

Main module is index.js. There are functions to configure, create and start the server.

Noteworthy:

Pipe Function

Pipe helper-function (helpers/pipe.js) is used to:

  • create pure functions
  • create code in 'functional styling'

Thanks Moon for article

Console Color Change Function

This helper-function (helpers/getColor.js) made console messages colorful and informative.