Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

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.2.9 to 0.3.0

config.json

22

lib/http-server.js

@@ -1,2 +0,2 @@

/*
/*
*

@@ -15,4 +15,4 @@ * http-server.js - A simple static HTTP server.

var HTTPServer = exports.HTTPServer = function (options) {
this.root = argv._[0] || ".";
var HTTPServer = module['exports'] = function (options) {
this.root = argv._[0] || "./public";
this.port = argv.p || 8080;

@@ -28,4 +28,4 @@ this.host = argv.a || 'localhost';

}
HTTPServer.prototype.start = function () {

@@ -36,5 +36,5 @@ var self = this;

}
self.log('Starting up http-server, serving '.yellow
+ self.root.cyan
+ ' on port: '.yellow
self.log('Starting up http-server, serving '.yellow
+ self.root.cyan
+ ' on port: '.yellow
+ self.port.toString().cyan);

@@ -60,6 +60,6 @@ self.server = http.createServer(function(request, response) {

self.server.listen(self.port);
self.log('http-server successfully started: '.green
+ 'http://'.cyan
+ self.host.cyan
+ ':'.cyan
self.log('http-server successfully started: '.green
+ 'http://'.cyan
+ self.host.cyan
+ ':'.cyan
+ self.port.toString().cyan);

@@ -66,0 +66,0 @@ self.log('Hit CTRL-C to stop the server')

{
"name" : "http-server",
"name": "http-server",
"preferGlobal": "true",
"version" : "0.2.9",
"version": "0.3.0",
"author": "Nodejitsu <support@nodejitsu.com>",
"description" : "a simple zero-configuration command-line http server",
"description": "a simple zero-configuration command-line http server",
"bin": {

@@ -11,27 +11,31 @@ "http-server": "./bin/http-server"

"scripts": {
"start": "./bin/http-server"
"start": "node ./bin/http-server",
"test": "vows --spec --isolate"
},
"main": "./lib/http-server",
"repository" : {
"type" : "git",
"url" : "https://github.com/nodejitsu/http-server.git"
"repository": {
"type": "git",
"url": "https://github.com/nodejitsu/http-server.git"
},
"keywords" : [
"cli",
"command"
"keywords": [
"cli",
"command"
],
"dependencies" : {
"dependencies": {
"eyes": "~0.1.6",
"colors" : "*",
"optimist" : "0.2.x"
"colors": "*",
"optimist": "0.2.x"
},
"devDepencencies": {
"analyze": false,
"devDependencies": {
"vows": "0.5.x",
"request": "2.1.x"
},
"bundleDependencies" : [ "node-static" ],
"license" : "MIT",
"engine" : {
"node" : ">=0.4"
"bundleDependencies": [
"node-static"
],
"license": "MIT",
"engine": {
"node": ">=0.4"
}
}

@@ -5,6 +5,8 @@ # http-server: a command-line http server

## Installation:
![](https://github.com/nodeapps/http-server/raw/master/screenshots/public.png)
Installation is via `npm`. If you don't have `npm` yet:
# Installing globally:
Installation via `npm`. If you don't have `npm` yet:
curl http://npmjs.org/install.sh | sh

@@ -22,8 +24,24 @@

<img src="https://github.com/nodejitsu/http-server/raw/master/screenshots/start.png"/></img>
The entire /mypath tree will now be available at `http://localhost:8080/`.
# Installing as a node app
<img src="https://github.com/nodejitsu/http-server/raw/master/screenshots/directory.png"/></img>
mkdir myapp
cd myapp/
jitsu install http-server
*If you do not have `jitsu` installed you can install it via `npm install jitsu -g`*
## Usage
### Starting http-server locally
node bin/http-server
*Now you can visit http://localhost:8080 to view your server*
### Deploy http-server to nodejitsu
jitsu deploy
*You will now be prompted for a `subdomain` to deploy your application on*
## Available Options:

@@ -30,0 +48,0 @@

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