Switch branches/tags
Clone or download
Pull request Compare This branch is 11 commits ahead, 27 commits behind xudafeng:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
lib
test
.gitignore
.jshintignore
.jshintrc
.npmignore
.travis.yml
CONTRIBUTING.md
HISTORY.md
LICENSE
Makefile
README.md
README.md.html
index.js
package.json

README.md

startserver

NPM version build status Test coverage node version npm download

Yet another http server.

Installation

Node requirement

>= 0.10.x

Install from npm

$ npm i startserver -g

Use it for generator support, add this alias to your .bash_profile:

alias node='node --harmony'

Or you'd better use io.js as an alternative.

Quick Start

$ startserver

It also can be use it like this:

$ startserver 6789

There are more shorter alias for it:

$ ss

Features

Server Everywhere

Run it at every directory under the root.

  • Automatic detection of unoccupied port.

Slider Revolution

Generate slider with README.md file or other markdown file.

  • Suppor a inverse color style.
  • Double click for temporary modifications, again to restore.
  • Normal to read makedown.
  • Highlight for your code block.
  • Thumbnail mode provided.

Others

  • Generator support and compatible runtime.
  • Original javascript source code.

Commands

plugins

show plugin list

generate

$ startsever generate README.md

generate static slide file to markdown [sample]

Plugins

logo

plugins list

Options

-s, --silent

start http server without opening browser

-p, --port

port to use (8080 default)

-d, --disable

disable default index router

-v, --version

output version infomation

Help

$ startserver -h

License

The MIT License (MIT)

Copyright (c) 2013 xdf