Socket
Socket
Sign inDemoInstall

http-server

Package Overview
Dependencies
Maintainers
1
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

http-server - npm Package Compare versions

Comparing version 0.1.3 to 0.2.1

lib/http-server.js

9

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc