aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorJacek Fiszer <[email protected]>2022-01-25 19:17:22 +0100
committerGitHub <[email protected]>2022-01-25 19:17:22 +0100
commit2c82be67c4ceb6afb3ae07b8a422fcc9be7c409b (patch)
treebe721deff2d635bffff561dd75d1f04c9dd7cf4c /README.md
parenta895ae564541dc72ffa8c2d1620bcf838be23dd3 (diff)
downloadfaker-2c82be67c4ceb6afb3ae07b8a422fcc9be7c409b.tar.xz
faker-2c82be67c4ceb6afb3ae07b8a422fcc9be7c409b.zip
docs: add Deno use case (#283)
Diffstat (limited to 'README.md')
-rw-r--r--README.md10
1 files changed, 10 insertions, 0 deletions
diff --git a/README.md b/README.md
index 06dd665b..31502ba1 100644
--- a/README.md
+++ b/README.md
@@ -52,6 +52,16 @@ const randomEmail = faker.internet.email(); // [email protected]
const randomCard = faker.helpers.createCard(); // random contact card containing many properties
```
+### Deno
+
+```js
+import { faker } from "https://cdn.skypack.dev/@faker-js/faker";
+
+const randomName = faker.name.findName(); // Willie Bahringer
+const randomEmail = faker.internet.email(); // [email protected]
+const randomCard = faker.helpers.createCard(); // random contact card containing many properties
+```
+
### TypeScript Support
Since version `v6+` there is native TypeScript support.