We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f93c1b4 commit 37bde40Copy full SHA for 37bde40
1 file changed
README.md
@@ -41,7 +41,7 @@ npm i @small-tech/https
41
### At localhost with automatically-provisioned development certificates via mkcert.
42
43
```js
44
-const https = require('@small-tech/https')
+import https from '@small-tech/https'
45
46
const server = https.createServer((request, response) => {
47
response.end('Hello, world!')
@@ -57,8 +57,8 @@ Hit `https://localhost` and you should see your site with locally-trusted TLS ce
57
### At hostname with automatically-provisioned Let’s Encrypt certificates.
58
59
60
61
-const os = require('os')
+import os form 'os'
62
63
const hostname = os.hostname()
64
const options = { domains: [hostname] }
0 commit comments