dserv

Node.js mini http server for frontend dev

npm install dserv
1 downloads in the last week
1 downloads in the last month

dserv

Node.js mini http server for frontend development. Compiles Jade templates and Stylus CSS on the fly. Serves static files (e.g. images, video) as-is.

It's a quick & dirty hack... could use several improvements :)

INSTALLATION

npm install dserv -g

USAGE

dserv [PORT]
  • Serves files under the current directory, on port 8000 by default.
  • Request foo.html -> render foo.jade
  • Request bar.css -> compile bar.styl as needed

TODO

  • LESS
  • SASS/SCSS
  • CoffeeScript
  • ...
  • subdir indexes (eg. request foo/ -> render foo/index.jade)
  • if no index.* file, list files w/ connect.directory
  • connect.favicon
  • trim dependencies? is Express overkill? Connect??
  • Windows support?

Similar tools

quickserve - static only tserv - static only paperserve - static only?

LICENSE

MIT

npm loves you