aboutsummaryrefslogtreecommitdiff
path: root/docs/api/fake.md
diff options
context:
space:
mode:
authorJess <[email protected]>2022-01-12 19:48:48 -0500
committerGitHub <[email protected]>2022-01-12 19:48:48 -0500
commit71e902599651b645cdb6996c8cd562e8007a32ea (patch)
tree368e83ffbeb836d5c66ad7af53c765c7444a26cb /docs/api/fake.md
parenta590f266e02d8f8a2cac65cb6e8bd395bf04074b (diff)
downloadfaker-71e902599651b645cdb6996c8cd562e8007a32ea.tar.xz
faker-71e902599651b645cdb6996c8cd562e8007a32ea.zip
feat: adding documentation with vitepress (#80)
Diffstat (limited to 'docs/api/fake.md')
-rw-r--r--docs/api/fake.md11
1 files changed, 11 insertions, 0 deletions
diff --git a/docs/api/fake.md b/docs/api/fake.md
new file mode 100644
index 00000000..8fae509a
--- /dev/null
+++ b/docs/api/fake.md
@@ -0,0 +1,11 @@
+# Fake
+
+Useful generator method `faker.fake()` for combining faker API methods using a mustache string format.
+
+```js
+faker.fake('{{name.lastName}}, {{name.firstName}} {{name.suffix}}');
+// Wintheiser, Shaylee Sr.
+
+faker.fake('{{company.bs}} is short for {{address.streetName}}');
+// cutting-edge leverage web services is short for Flatley Rue
+```