```
These `*.d.ts` files allow `encrypt` and `decrypt` to be imported in `.ts` files with typing.
+
+## Local testing
+
+Host the files on any web host configured to serve static files and add a default file extension of `.html` to plain paths. For example, using [local-web-server](https://github.com/lwsjs/local-web-server/):
+
+```
+ws --static.extensions html
+```
<link rel="icon" href="data:,">
<link rel="modulepreload" href="/encrypt.js" crossorigin>
<link rel="modulepreload" href="/decrypt.js" crossorigin>
- <link rel="preload" as="fetch" href="/template.html" crossorigin>
+ <link rel="preload" as="fetch" href="/template" crossorigin>
<title>static-encrypt</title>
<style>
* {
downloadHtml(output, `${Date.now()}.html`);
})
- const template = await fetch('/template.html').then(r => r.text());
+ const template = await fetch('/template').then(r => r.text());
// For debugging and bulk usage in the DevTools console
globalThis.help = function () {