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.
cd ./website
expose-dir --port 3000
var exposedir = require('expose-dir')
var http = require('http')
http.createServer(function (req, res) {
exposedir.handler(req, res)
}).port(3000)
npm i expose-dir -g