Skip to content

Commit

Permalink
Merge branch 'main' into feat/hex-signature-change
Browse files Browse the repository at this point in the history
  • Loading branch information
Shinigami92 authored Aug 10, 2022
2 parents 24ffdd9 + d4cfe97 commit 3ad814f
Show file tree
Hide file tree
Showing 3 changed files with 247 additions and 28 deletions.
7 changes: 4 additions & 3 deletions docs/guide/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,10 @@ const randomEmail = faker.internet.email(); // Kassandra.Haley@erich.biz
### Browser

```html
<script type="text/javascript" src="https://unpkg.com/@faker-js/faker"></script>
<!-- Since v6 only type=module is supported -->
<script type="module">
import { faker } from 'https://cdn.skypack.dev/@faker-js/faker';
<script>
// Caitlyn Kerluke
const randomName = faker.name.fullName();
Expand All @@ -65,7 +66,7 @@ const randomEmail = faker.internet.email(); // Kassandra.Haley@erich.biz
```

:::tip Note
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.**
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 the full Faker in your web app.**
:::

### CDN/Deno
Expand Down
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -102,16 +102,16 @@
"@types/validator": "~13.7.5",
"@typescript-eslint/eslint-plugin": "~5.32.0",
"@typescript-eslint/parser": "~5.32.0",
"@vitest/ui": "~0.21.0",
"@vitest/ui": "~0.21.1",
"c8": "~7.12.0",
"conventional-changelog-cli": "~2.2.2",
"cypress": "~10.4.0",
"esbuild": "~0.14.54",
"esbuild": "~0.15.0",
"eslint": "~8.21.0",
"eslint-config-prettier": "~8.5.0",
"eslint-define-config": "~1.6.0",
"eslint-gitignore": "~0.1.0",
"eslint-plugin-jsdoc": "~39.3.4",
"eslint-plugin-jsdoc": "~39.3.6",
"eslint-plugin-prettier": "~4.2.1",
"glob": "~8.0.3",
"lint-staged": "~13.0.3",
Expand All @@ -131,9 +131,9 @@
"typedoc-plugin-missing-exports": "~0.23.0",
"typescript": "~4.7.4",
"validator": "~13.7.0",
"vite": "~3.0.4",
"vite": "~3.0.5",
"vitepress": "1.0.0-alpha.4",
"vitest": "~0.21.0"
"vitest": "~0.21.1"
},
"packageManager": "pnpm@7.9.0",
"engines": {
Expand Down
Loading

0 comments on commit 3ad814f

Please sign in to comment.