ready for npm

This commit is contained in:
AJ ONeal 2015-06-24 15:44:42 -06:00
parent ee087c3231
commit 98f710dcfe
3 changed files with 22 additions and 0 deletions

View File

@ -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 <port>` - i.e. `sudo serve-https -p 443`
* `-d <dirpath>` - i.e. `serve-https -d /tmp/`

View File

@ -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"

1
serve.js Normal file → Executable file
View File

@ -1,3 +1,4 @@
#!/bin/bash
'use strict';
var https = require('https');