Skip to content

Commit

Permalink
Docs: Fix Skypack URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
nzakas committed Nov 4, 2020
1 parent e8861af commit 4d7f098
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ Import into your Deno project:
import { Env } from "https://deno.land/x/env/env.js";
```

Or
Or from Skypack:

```js
import { Env } from "https://cdn.skypack.dev/@humanwhocodes/env";
import { Env } from "https://cdn.skypack.dev/@humanwhocodes/env?dts";
```

By default, an `Env` instance will read from `Deno.env`.
Expand All @@ -58,12 +58,25 @@ It's recommended to import the minified version to save bandwidth:
import { Env } from "https://unpkg.com/@humanwhocodes/env/dist/env.min.js";
```

Or from Skypack:

```js
import { Env } from "https://cdn.skypack.dev/@humanwhocodes/env?min";
```

However, you can also import the unminified version for debugging purposes:

```js
import { Env } from "https://unpkg.com/@humanwhocodes/env/dist/env.js";
```

Or from Skypack:

```js
import { Env } from "https://cdn.skypack.dev/@humanwhocodes/env";
```


By default, an `Env` instance will read from an empty object.

## API
Expand Down

0 comments on commit 4d7f098

Please sign in to comment.