Skip to content

Commit 37bde40

Browse files
committed
Revert "Revert code examples in readme to CommonJS format for time being"
This reverts commit 75db0bb.
1 parent f93c1b4 commit 37bde40

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ npm i @small-tech/https
4141
### At localhost with automatically-provisioned development certificates via mkcert.
4242

4343
```js
44-
const https = require('@small-tech/https')
44+
import https from '@small-tech/https'
4545

4646
const server = https.createServer((request, response) => {
4747
response.end('Hello, world!')
@@ -57,8 +57,8 @@ Hit `https://localhost` and you should see your site with locally-trusted TLS ce
5757
### At hostname with automatically-provisioned Let’s Encrypt certificates.
5858

5959
```js
60-
const https = require('@small-tech/https')
61-
const os = require('os')
60+
import https from '@small-tech/https'
61+
import os form 'os'
6262

6363
const hostname = os.hostname()
6464
const options = { domains: [hostname] }

0 commit comments

Comments
 (0)