0.0.2 • Published 4 years ago
expose-dir v0.0.2
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