Skip to content

Commit

Permalink
jsDelivr instead of Skypack
Browse files Browse the repository at this point in the history
  • Loading branch information
mbostock committed Mar 20, 2023
1 parent cdd37e4 commit 6a785c6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Expand Up @@ -32,19 +32,19 @@ And finally **iteration methods** that apply functions to elements in the array:

## Installing

If you use npm, `npm install d3-array`. You can also download the [latest release on GitHub](https://github.com/d3/d3-array/releases/latest). For vanilla HTML in modern browsers, import d3-array from Skypack:
If you use npm, `npm install d3-array`. You can also download the [latest release on GitHub](https://github.com/d3/d3-array/releases/latest). For vanilla HTML in modern browsers, import d3-array from jsDelivr:

```html
<script type="module">
import {min} from "https://cdn.skypack.dev/d3-array@3";
import {min} from "https://cdn.jsdelivr.net/npm/d3-array@3/+esm";
const m = min(array);
</script>
```

For legacy environments, you can load d3-array’s UMD bundle from an npm-based CDN such as jsDelivr; a `d3` global is exported:
For legacy environments, you can load d3-array’s UMD bundle; a `d3` global is exported:

```html
<script src="https://cdn.jsdelivr.net/npm/d3-array@3"></script>
Expand Down

0 comments on commit 6a785c6

Please sign in to comment.