Skip to content

Commit

Permalink
Use SRI
Browse files Browse the repository at this point in the history
  • Loading branch information
robsimmons committed Nov 29, 2024
1 parent c03cfdd commit 5d84cf9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docs/src/content/docs/docs/api/importing.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,16 @@ As Julia Evans describes, in 2024
To use Dusa in your random web page, include the UMD module in a script tag in
the head of your file, for example with unpkg like this:

<!-- https://www.srihash.org/ for updating this when the package bumps -->

```html
<script src="https://unpkg.com/[email protected]"></script>
<script src="https://unpkg.com/[email protected]" integrity="sha384-dQ1a/faivdqPhpQcxYG+tCkmln6OAQAi5gccaliGtbeOcGFGgXlsLuSKl+h8Jp8r" crossorigin="anonymous"></script>
```

or with jsdelivr like this:

```html
<script src="https://cdn.jsdelivr.net/npm/[email protected]"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]" integrity="sha384-rz5oQihX+60VISoW9hKtiHrEU11ydb3dfTN93lQEAIx0XwNOEfR3z3jFaYieGfrp" crossorigin="anonymous"></script>
```

This defines the `Dusa` name, which can be used to make new Dusa classes or
Expand Down

0 comments on commit 5d84cf9

Please sign in to comment.