http-server
Advanced tools
Comparing version 0.1.3 to 0.2.1
{ | ||
"name" : "http-server", | ||
"preferGlobal": "true", | ||
"version" : "0.1.3", | ||
"version" : "0.2.1", | ||
"author": "Marak Squires <marak.squires@gmail.com>", | ||
@@ -10,2 +10,3 @@ "description" : "a simple zero-configuration command-line http server", | ||
}, | ||
"main": "./lib/http-server", | ||
"repository" : { | ||
@@ -19,2 +20,6 @@ "type" : "git", | ||
], | ||
"dependencies" : { | ||
"colors" : "*", | ||
"optimist" : "0.2.x" | ||
}, | ||
"license" : "MIT", | ||
@@ -24,2 +29,2 @@ "engine" : { | ||
} | ||
} | ||
} |
@@ -40,3 +40,3 @@ # http-server: a command-line http server | ||
`-i` Display AutoIndex (defaults to 'True') | ||
`-i` Display autoIndex (defaults to 'True') | ||
@@ -43,0 +43,0 @@ `-s` or `--silent` In silent mode, log messages aren't logged to the console. |
@@ -28,3 +28,3 @@ var fs = require('fs'), | ||
this.options.headers = this.options.headers || {}; | ||
this.options.AutoIndex = this.options.AutoIndex || false; | ||
this.options.autoIndex = this.options.autoIndex || false; | ||
@@ -64,4 +64,4 @@ if ('cache' in this.options) { | ||
if (e) { | ||
if (that.options.AutoIndex === true || that.options.AutoIndex === "true") { | ||
return that.serveAutoIndex(pathname, res, req, finish); | ||
if (that.options.autoIndex === true || that.options.autoIndex === "true") { | ||
return that.serveautoIndex(pathname, res, req, finish); | ||
} else { | ||
@@ -234,3 +234,3 @@ return finish(404, {}); | ||
}; | ||
this.Server.prototype.serveAutoIndex = function (dirPath, res, req, finish) { | ||
this.Server.prototype.serveautoIndex = function (dirPath, res, req, finish) { | ||
var html, | ||
@@ -237,0 +237,0 @@ self = this, |
@@ -142,9 +142,9 @@ node-static | ||
#### `AutoIndex` # | ||
#### `autoIndex` # | ||
Automatically generates an html index page for directory listings | ||
example: `{ 'AutoIndex': true }` | ||
example: `{ 'autoIndex': true }` | ||
> Defaults to `false` | ||
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Wildcard dependency
QualityPackage has a dependency with a floating version range. This can cause issues if the dependency publishes a new major version.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
180014
61
2068
2
1
4
+ Addedcolors@*
+ Addedoptimist@0.2.x
+ Addedcolors@1.4.0(transitive)
+ Addedoptimist@0.2.8(transitive)
+ Addedwordwrap@0.0.3(transitive)