merely-server
v1.1.1
Published
Merely server for testing production build localy.
Downloads
14
Maintainers
Readme
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:
- void operator for Immediately Invoked Function Expression
- create server and read files with pure nodejs
Pipe Function
Pipe helper-function (helpers/pipe.js
) is used to:
- create pure functions
- create code in 'functional styling'
Console Color Change Function
This helper-function (helpers/getColor.js
) made console messages colorful and informative.