Skip to content
Create a gist now

Instantly share code, notes, and snippets.

@nathan7 /.gitignore
Last active Dec 10, 2015

"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://"
"keywords": [
"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')
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.