Skip to content

Commit

Permalink
[CI SKIP] docs
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickkunka committed Jun 9, 2020
1 parent fba62c0 commit de6ec80
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,13 @@ import {createBandwidthThrottleGroup} from 'bandwidth-throttle-stream';
In Deno, all libraries are imported from URLs as ES modules. Versioned releases of `bandwidth-throttle-stream` are available from the [Pika](http://pika.dev) CDN:

```js
import {createBandwidthThrottleGroup} from 'https://cdn.pika.dev/bandwidth-throttle-stream/mod.ts';
import {createBandwidthThrottleGroup} from 'https://deno.land/x/bandwidth-throttle-stream/lib/mod.ts';
```

The above URL will return the latest release, but it is strongly advised to lock your import to a specific version using the following syntax, where the `x.y.z` semver can be any published version of the library:

```js
import {createBandwidthThrottleGroup} from 'https://cdn.pika.dev/bandwidth-throttle-stream@x.y.z/mod.ts';
import {createBandwidthThrottleGroup} from 'https://deno.land/x/bandwidth-throttle-stream@x.y.z/lib/mod.ts';
```

## Usage
Expand Down

0 comments on commit de6ec80

Please sign in to comment.