Skip to content

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
node_modules
{
"asi": true,
"laxcomma": true
}
{
"name": "servecwd",
"version": "0.0.1",
"description": "serve your cwd",
"bin": "server.js",
"scripts": {
"start": "node server.js"
},
"repository": {
"type": "git",
"url": "git://gist.github.com/4454240.git"
},
"keywords": [
"ecstatic"
],
"author": "Nathan Zadoks",
"license": "BSD",
"dependencies": {
"ecstatic": "~0.3.0",
"listen-url": "~1.0.0"
}
}
#!/usr/bin/env node
var http = require('http')
, ecstatic = require('ecstatic')
http.createServer(
ecstatic({
root: process.cwd,
showDir: true,
autoIndex: true,
cache: 0
})
).listen(process.env.PORT || 0, require('listen-url'))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.