core.js 221 Bytes Edit Raw Blame History 1 2 3 4 5 6 7 8 9 10 var http = require('http'); var ecstatic = require('../lib/ecstatic')({ root: __dirname + '/public', showDir: true, autoIndex: true }); http.createServer(ecstatic).listen(8080); console.log('Listening on :8080');