simple-https-server
Advanced tools
Comparing version 0.0.1 to 0.1.0
@@ -0,1 +1,3 @@ | ||
#! /usr/bin/env node | ||
var https = require('https'); | ||
@@ -14,6 +16,8 @@ var fs = require('fs'); | ||
var a = https.createServer(options, function (req, res) { | ||
console.log('Starting server on HTTPS://localhost:8000...') | ||
var httpsServer = https.createServer(options, function (req, res) { | ||
var done = finalhandler(req, res); | ||
serve(req, res, done); | ||
}).listen(8000); |
{ | ||
"name": "simple-https-server", | ||
"version": "0.0.1", | ||
"version": "0.1.0", | ||
"description": "locally serve static files", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1", | ||
"postinstall": "(cd cert && ./certificate.sh)" | ||
"postinstall": "(cd cert && ./certificate.sh)", | ||
"start": "node index.js" | ||
}, | ||
@@ -15,5 +15,9 @@ "repository": { | ||
"keywords": [ | ||
"https" | ||
"https", "server" | ||
], | ||
"author": "Radek Novak <radek.novak.cze@gmail.com> (http://radek-novak.com/)", | ||
"preferGlobal": true, | ||
"bin": { | ||
"simple-https-server": "index.js" | ||
}, | ||
"author": "Radek Novak <radek.novak.cze@gmail.com> (http://radeknovak.net/)", | ||
"license": "GPL-3.0", | ||
@@ -23,3 +27,7 @@ "bugs": { | ||
}, | ||
"homepage": "https://github.com/radek-novak/simple-https-server#readme" | ||
"homepage": "https://github.com/radek-novak/simple-https-server#readme", | ||
"dependencies": { | ||
"finalhandler": "^0.4.1", | ||
"serve-static": "^1.11.0" | ||
} | ||
} |
@@ -1,1 +0,6 @@ | ||
# simple-https-server | ||
# simple-https-server | ||
Install with: | ||
`npm install -g simple-https-server` | ||
Then run `simple-https-server` in folder you wish to be served. Page will be hosted at https://localhost:8000 (don't forget the 's' httpS://) |
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
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
37071
16
7
2
+ Addedfinalhandler@^0.4.1
+ Addedserve-static@^1.11.0
+ Addeddebug@2.2.02.6.9(transitive)
+ Addeddepd@2.0.0(transitive)
+ Addeddestroy@1.2.0(transitive)
+ Addedee-first@1.1.1(transitive)
+ Addedencodeurl@1.0.22.0.0(transitive)
+ Addedescape-html@1.0.3(transitive)
+ Addedetag@1.8.1(transitive)
+ Addedfinalhandler@0.4.1(transitive)
+ Addedfresh@0.5.2(transitive)
+ Addedhttp-errors@2.0.0(transitive)
+ Addedinherits@2.0.4(transitive)
+ Addedmime@1.6.0(transitive)
+ Addedms@0.7.12.0.02.1.3(transitive)
+ Addedon-finished@2.3.02.4.1(transitive)
+ Addedparseurl@1.3.3(transitive)
+ Addedrange-parser@1.2.1(transitive)
+ Addedsend@0.19.0(transitive)
+ Addedserve-static@1.16.2(transitive)
+ Addedsetprototypeof@1.2.0(transitive)
+ Addedstatuses@2.0.1(transitive)
+ Addedtoidentifier@1.0.1(transitive)
+ Addedunpipe@1.0.0(transitive)