This package contains dependency-free NodeJS script to create and start local server
npm install merely-server
> 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
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 helper-function (helpers/pipe.js
) is used to:
- create pure functions
- create code in 'functional styling'
This helper-function (helpers/getColor.js
) made console messages colorful and informative.