From 98f710dcfebc34585b225f8240342e4f64358015 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Wed, 24 Jun 2015 15:44:42 -0600 Subject: [PATCH] ready for npm --- README.md | 18 ++++++++++++++++++ package.json | 3 +++ serve.js | 1 + 3 files changed, 22 insertions(+) mode change 100644 => 100755 serve.js diff --git a/README.md b/README.md index 2dd48e2..b3a192a 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,20 @@ # localhost.daplie.com-server Serves HTTPS using TLS (SSL) certs for localhost.daplie.com - great for testing and development. + +Install +------- + +```bash +npm install --global serve-https +serve-https +``` + +``` +Serving /Users/foo/ at https://localhost.daplie.com:1443 +``` + +Usage +----- + +* `-p ` - i.e. `sudo serve-https -p 443` +* `-d ` - i.e. `serve-https -d /tmp/` diff --git a/package.json b/package.json index 540a597..81d5cad 100644 --- a/package.json +++ b/package.json @@ -6,6 +6,9 @@ "scripts": { "test": "node serve.js -p 1443 -d /tmp/" }, + "bin": { + "serve-https": "serve.js" + }, "repository": { "type": "git", "url": "git+https://github.com/Daplie/localhost.daplie.com-server.git" diff --git a/serve.js b/serve.js old mode 100644 new mode 100755 index dcf5c95..98e9f64 --- a/serve.js +++ b/serve.js @@ -1,3 +1,4 @@ +#!/bin/bash 'use strict'; var https = require('https');