Last active

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist
View .gitignore
1 2 3 4
{
"asi": true,
"laxcomma": true
}
View .gitignore
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
{
"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"
}
}
View .gitignore
1 2 3 4 5 6 7 8 9 10 11 12 13
#!/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.