-
-
Notifications
You must be signed in to change notification settings - Fork 943
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: remove skypack as cdn provider (#2629)
- Loading branch information
1 parent
23e52bf
commit a5dd0fa
Showing
1 changed file
with
3 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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(); | ||
|
@@ -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:** | ||
|