Skip to content

Commit

Permalink
docs: update README for package version and new file extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
serkodev committed Jul 10, 2024
1 parent 58e28ed commit 496cf2d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ isApng(new Uint8Array(buffer))
#### As old-school global script tag

Url for latest version: `https://unpkg.com/is-apng`<br>
Url for specific version: `https://unpkg.com/is-apng@1.0.1/dist/index.js`
Url for specific version: `https://unpkg.com/is-apng@1.1.0/dist/index.js`

```html
<script src="https://unpkg.com/is-apng" type="text/javascript"></script>
Expand All @@ -52,12 +52,12 @@ Url for specific version: `https://unpkg.com/[email protected]/dist/index.js`

#### As module

Url for latest version: `https://unpkg.com/is-apng/dist/index.esm.js`<br>
Url for specific version: `https://unpkg.com/is-apng@1.0.1/dist/index.esm.js`
Url for latest version: `https://unpkg.com/is-apng/dist/index.mjs`<br>
Url for specific version: `https://unpkg.com/is-apng@1.1.0/dist/index.mjs`

```html
<script type="module">
import isApng from 'https://unpkg.com/is-apng/dist/index.esm.js'
import isApng from 'https://unpkg.com/is-apng/dist/index.mjs'
console.log(typeof isApng);
// isApng(...)
Expand All @@ -72,7 +72,7 @@ or
<script type="importmap">
{
"imports": {
"is-apng": "https://unpkg.com/is-apng/dist/index.esm.js"
"is-apng": "https://unpkg.com/is-apng/dist/index.mjs"
}
}
</script>
Expand Down

0 comments on commit 496cf2d

Please sign in to comment.