Skip to content

uestcer/startserver

 
 

Repository files navigation

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

Packages

No packages published

Languages

  • JavaScript 51.6%
  • Smarty 46.7%
  • Makefile 1.7%