Skip to content

Commit

Permalink
docs: remove skypack as cdn provider (#2629)
Browse files Browse the repository at this point in the history
  • Loading branch information
xDivisionByZerox authored Jan 29, 2024
1 parent 23e52bf commit a5dd0fa
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions docs/guide/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ For more information about changing and customizing the locales, please refer to

```html
<script type="module">
import { faker } from 'https://cdn.skypack.dev/@faker-js/faker';
import { faker } from 'https://esm.sh/@faker-js/faker';
// Caitlyn Kerluke
const randomName = faker.person.fullName();
Expand All @@ -49,21 +49,20 @@ Using the browser is great for experimenting 👍. However, due to all of the st
## CDN/Deno

```js
import { faker } from 'https://cdn.skypack.dev/@faker-js/faker';
import { faker } from 'https://esm.sh/@faker-js/faker';

const randomName = faker.person.fullName(); // Willie Bahringer
const randomEmail = faker.internet.email(); // [email protected]
```

::: info Note
It is highly recommended to use version tags when importing libraries in Deno, e.g: `import { faker } from "https://cdn.skypack.dev/@faker-js/faker@v7.4.0"`. Add `?dts` to import with type definitions: `import { faker } from "https://cdn.skypack.dev/@faker-js/[email protected]?dts"`.
It is highly recommended to use version tags when importing libraries in Deno, e.g: `import { faker } from "https://esm.sh/@faker-js/faker@v8.4.0"`.
:::

### Alternative CDN links

**esm:**

- https://esm.sh/@faker-js/faker
- https://cdn.jsdelivr.net/npm/@faker-js/faker/+esm

**cjs:**
Expand Down

0 comments on commit a5dd0fa

Please sign in to comment.