Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: remove skypack as cdn provider #2629

Merged
merged 3 commits into from
Jan 29, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading