Commit 37bde40a authored by Aral Balkan's avatar Aral Balkan
Browse files

Revert "Revert code examples in readme to CommonJS format for time being"

This reverts commit 75db0bbe.
parent f93c1b42
......@@ -41,7 +41,7 @@ npm i @small-tech/https
### At localhost with automatically-provisioned development certificates via mkcert.
```js
const https = require('@small-tech/https')
import https from '@small-tech/https'
const server = https.createServer((request, response) => {
response.end('Hello, world!')
......@@ -57,8 +57,8 @@ Hit `https://localhost` and you should see your site with locally-trusted TLS ce
### At hostname with automatically-provisioned Let’s Encrypt certificates.
```js
const https = require('@small-tech/https')
const os = require('os')
import https from '@small-tech/https'
import os form 'os'
const hostname = os.hostname()
const options = { domains: [hostname] }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment