We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7c4ef51 commit 6c85320Copy full SHA for 6c85320
2 files changed
README.md
@@ -24,11 +24,12 @@ Then serve static file with `sudo serve <static-path>`.
24
25
26
#### Use as module
27
-Just require this module. It will start the server automatically.
+Install the dependency with `npm install -s https-localhost`.
28
+Then just require this module, it will start the server automatically.
29
30
For example, put in your index.js file:
31
```
-const app = require('./index.js')
32
+const app = require('https-localhost')
33
app.get('/', (req, res) => res.send('Hello World!'))
34
35
package.json
@@ -1,6 +1,6 @@
1
{
2
"name": "https-localhost",
3
- "version": "0.2.0",
+ "version": "0.2.1",
4
"description": "HTTPS server running on localhost",
5
"main": "index.js",
6
"scripts": {
0 commit comments