serveur

2.1.0 • Public • Published

serveur

Simple 5 minute command-line file / directory server built with connect, inspired by nodejitsu's http-server to show off the simplicity and flexibility of connect as a modular server.

Installation

$ npm install -g serveur

Usage


Usage: serveur [options] [dir]

Options:

  -v, --version        output the version number
  -F, --format <fmt>   specify the log format string
  -p, --port <port>    specify the port [3000]
  -f, --favicon <path> serveur the given favicon
  -H, --hidden         enable hidden file serving
  -c, --no-coffee      disable coffee rendering
  -b, --no-babel       disable babel rendering')
  -J, --no-jade        disable jade rendering
  -S, --no-stylus      disable stylus rendering
      --no-less        disable less css rendering
      --no-sass        disable sass css rendering
  -o, --open           open with your browser
  -I, --no-icons       disable icons
  -L, --no-logs        disable request logging
  -D, --no-dirs        disable directory serving
  -C, --cors           allows cross origin access serving
      --compress       gzip or deflate the response
  -R, --livereload     refresh your CSS (or page) with each save
      --exec <cmd>     execute command on each request
  -h, --help           output usage information


Examples

Directory listing served by connect's connect.directory() middleware.

directory listings

License

MIT

Copyright © 2011 TJ Holowaychuk <tj@vision-media.ca> & François Robichet <http://francois.robichet.com>

Package Sidebar

Install

npm i serveur

Weekly Downloads

12

Version

2.1.0

License

MIT

Last publish

Collaborators

  • calvein