-
-
Notifications
You must be signed in to change notification settings - Fork 944
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
111 additions
and
66 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 |
---|---|---|
|
@@ -11,3 +11,7 @@ coverage: | |
default: | ||
target: 95% | ||
threshold: 2% | ||
patch: | ||
default: | ||
target: 95% | ||
threshold: 1% |
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 |
---|---|---|
|
@@ -69,6 +69,17 @@ const randomEmail = faker.internet.email(); // [email protected] | |
const randomPhoneNumber = faker.phone.phoneNumber(); // 938-672-1359 x418 | ||
``` | ||
|
||
#### Alternative CDN links | ||
|
||
**esm:** | ||
|
||
- https://esm.sh/@faker-js/faker | ||
- https://cdn.jsdelivr.net/npm/@faker-js/faker/+esm | ||
|
||
**cjs:** | ||
|
||
- https://cdn.jsdelivr.net/npm/@faker-js/faker | ||
|
||
### TypeScript Support | ||
|
||
Since version `v6+` there is native TypeScript support. | ||
|
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
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 |
---|---|---|
|
@@ -71,7 +71,7 @@ const randomCard = faker.helpers.createCard(); // An object representing a rando | |
Using the browser is great for experimenting 👍. However, due to all of the strings Faker uses to generate fake data, **Faker is a large package**. It's `> 5 MiB` minified. **Please avoid deploying Faker in your web app.** | ||
::: | ||
|
||
### Deno | ||
### CDN/Deno | ||
|
||
```js | ||
import { faker } from 'https://cdn.skypack.dev/@faker-js/faker'; | ||
|
@@ -85,6 +85,17 @@ const randomCard = faker.helpers.createCard(); // random contact card containing | |
It is highly recommended to use version tags when importing libraries in Deno, e.g: `import { faker } from "https://cdn.skypack.dev/@faker-js/[email protected]"`. Add `?dts` to import with type definitions: `import { faker } from "https://cdn.skypack.dev/@faker-js/[email protected]?dts"`. | ||
::: | ||
|
||
#### Alternative CDN links | ||
|
||
**esm:** | ||
|
||
- https://esm.sh/@faker-js/faker | ||
- https://cdn.jsdelivr.net/npm/@faker-js/faker/+esm | ||
|
||
**cjs:** | ||
|
||
- https://cdn.jsdelivr.net/npm/@faker-js/faker | ||
|
||
## Community | ||
|
||
If you have questions or need help, reach out to the community via [Discord](https://chat.fakerjs.dev) and [GitHub Discussions](https://github.com/faker-js/faker/discussions). |
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 |
---|---|---|
|
@@ -94,9 +94,9 @@ | |
"@types/prettier": "~2.4.4", | ||
"@types/sanitize-html": "~2.6.2", | ||
"@types/validator": "~13.7.1", | ||
"@typescript-eslint/eslint-plugin": "~5.15.0", | ||
"@typescript-eslint/parser": "~5.15.0", | ||
"@vitest/ui": "~0.7.6", | ||
"@typescript-eslint/eslint-plugin": "~5.16.0", | ||
"@typescript-eslint/parser": "~5.16.0", | ||
"@vitest/ui": "~0.7.7", | ||
"c8": "~7.11.0", | ||
"conventional-changelog-cli": "~2.2.2", | ||
"cypress": "~9.5.2", | ||
|
@@ -123,7 +123,7 @@ | |
"validator": "~13.7.0", | ||
"vite": "~2.8.6", | ||
"vitepress": "~0.22.3", | ||
"vitest": "~0.7.6" | ||
"vitest": "~0.7.7" | ||
}, | ||
"packageManager": "[email protected]", | ||
"engines": { | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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