Skip to content

Commit 6c85320

Browse files
committed
Updated readme
1 parent 7c4ef51 commit 6c85320

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,12 @@ Then serve static file with `sudo serve <static-path>`.
2424

2525

2626
#### Use as module
27-
Just require this module. It will start the server automatically.
27+
Install the dependency with `npm install -s https-localhost`.
28+
Then just require this module, it will start the server automatically.
2829

2930
For example, put in your index.js file:
3031
```
31-
const app = require('./index.js')
32+
const app = require('https-localhost')
3233
app.get('/', (req, res) => res.send('Hello World!'))
3334
```
3435

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "https-localhost",
3-
"version": "0.2.0",
3+
"version": "0.2.1",
44
"description": "HTTPS server running on localhost",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)