mdserver

Static http server with markdown supported.
Like the famous SimpleHTTPServer
in python, mdserver
can start a http server with given directory(default to current directory) as the DocumentRoot
. U can also specify the port.
Installation
npm install mdserver -g
Options
-p, --port
Type: Number
Default: 3333
The port
used by the server. Default to 3333
-r, --root
Type: Path
Default: current work dictionary (cwd
)
The DocumentRoot
for the server.
-s, --silent
Type: Boolean
Default: false
Silent mode. When set to true
, there will no logs been displayed.
-t, --template
Type: Path | String
Default: undefined
Template used for the markdown pages. If not set, the option will use the default value provided by the serve-markdown
middleware.
More about the option please refer to server-markdown
-l, --style
Type: Path | String
Default: undefined
Stylesheet used for the markdown pages. If not set, the option will use the default value provided by the serve-markdown
middleware.
More about the option please refer to server-markdown
Examples
mdserver
mdserver -p 8788 -r ~/github/mdserver -l ~/github/style/base.css
Visit: http://localhost:8788