Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

14 lines (11 sloc) 0.36 kB
resolve = require('path').resolve
server = (connect = require 'connect')()
if process.argv.length != 3 then console.log "[dir]"
else
path = resolve process.argv[2]
server.use use for use in [
connect.favicon()
connect.static path, maxAge: 1, hidden: true
]
server.listen 3000, ->
console.log "'serving #{path} on #{server.address().port}"
Jump to Line
Something went wrong with that request. Please try again.