Skip to content

Commit 14de17e

Browse files
committed
Update CDN urls [ci skip]
1 parent a21f22f commit 14de17e

File tree

2 files changed

+9
-12
lines changed

2 files changed

+9
-12
lines changed

API.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ The API is documented in the rest of this document.
158158
* FunctionInfo#**body**: `Expression`
159159

160160
* **getGlobalInfo**(global: `Global`): `GlobalInfo`<br />
161-
Obtains information about an import, always including:
161+
Obtains information about a global.
162162

163163
* GlobalInfo#**name**: `string`
164164
* GlobalInfo#**module**: `string | null` (if imported)

README.md

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -60,17 +60,14 @@ or you can use one of the [previous versions](https://github.com/AssemblyScript/
6060

6161
### Usage with a CDN
6262

63-
* **[RawGit](https://rawgit.com)** serves the files from GitHub:
64-
65-
URL: https://cdn.rawgit.com/AssemblyScript/binaryen.js/master/index.js
66-
67-
Replace `master` with any [tag](https://github.com/AssemblyScript/binaryen.js/releases) or commit hash to use a specific version.
68-
69-
* **[UNPKG](https://unpkg.com)** serves the files from npm:
70-
71-
URL: https://unpkg.com/binaryen@latest/index.js
72-
73-
Replace `latest` with any published version to use a specific version, or use `nightly` for the latest build.
63+
* From GitHub via [jsDelivr](https://www.jsdelivr.com):<br />
64+
`https://cdn.jsdelivr.net/gh/AssemblyScript/binaryen.js@VERSION/index.js`
65+
* From npm via [jsDelivr](https://www.jsdelivr.com):<br />
66+
`https://cdn.jsdelivr.net/npm/binaryen@VERSION/index.js`
67+
* From npm via [UNPKG](https://unpkg.com):<br />
68+
`https://unpkg.com/binaryen@VERSION/index.js`
69+
70+
Replace `VERSION` with a [specific version](https://github.com/AssemblyScript/binaryen.js/releases) or omit it (not recommended in production) to use master/latest.
7471

7572
API
7673
---

0 commit comments

Comments
 (0)