Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

mdserver

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mdserver

static http server with markdown support

Source
npmnpm
Version
2.1.4
Version published
Weekly downloads
3
200%
Maintainers
1
Weekly downloads
 
Created
Source

mdserver

Build Status NPM Version NPM Downloads

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

# use default options
mdserver

# custom port, root, and style
mdserver -p 8788 -r ~/github/mdserver -l ~/github/style/base.css

Visit: http://localhost:8788

Keywords

http

FAQs

Package last updated on 11 Dec 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts