expose-dir

0.0.2 • Public • Published

expose-dir

A bit like python -m SimpleHTTPServer 3000 but its expose-dir --port 3000. Serves a folder of assets for development mainly. It has a common list of file types. This module does not try to handle cases like Etags and caching and is just a simple tool.

cli usage

cd ./website
expose-dir --port 3000

library usage

var exposedir = require('expose-dir')
var http = require('http')

http.createServer(function (req, res) {
  exposedir.handler(req, res)
}).port(3000)

install

npm i expose-dir -g

Package Sidebar

Install

npm i expose-dir

Weekly Downloads

1

Version

0.0.2

License

MIT

Unpacked Size

4.63 kB

Total Files

5

Last publish

Collaborators

  • yaus