Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 18 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,22 @@ bus, and separate control signals.

## jsDelivr CDN

These versionless URLs resolve to the latest version published on npm and will
follow future releases:
Add this module script to your site's `<head>`. It waits for the page to load,
then renders every Wire Lang code block:

```html
<script type="module">
import wire from "https://cdn.jsdelivr.net/npm/@wire-lang/browser/dist/index.js";

await wire.initialize();
</script>
```

The versionless URL loads the latest version published on npm and will follow
future releases.

<details>
<summary>Show all CDN URLs</summary>

| Package | CDN URL |
| --- | --- |
Expand All @@ -100,6 +114,8 @@ follow future releases:
| `@wire-lang/browser` | <https://cdn.jsdelivr.net/npm/@wire-lang/browser> |
| `@wire-lang/markdown` | <https://cdn.jsdelivr.net/npm/@wire-lang/markdown> |

</details>

## Install and use

```bash
Expand Down