forked from zuriby/Faker.js
-
Notifications
You must be signed in to change notification settings - Fork 0
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
142 changed files
with
51,946 additions
and
7,377 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,6 +11,7 @@ | |
[http://marak.com/faker.js/](http://marak.com/faker.js/) | ||
|
||
## Hosted API Microservice | ||
|
||
[http://faker.hook.io](http://faker.hook.io/) | ||
- Supports all Faker API Methods | ||
- Full-Featured Microservice | ||
|
@@ -41,14 +42,15 @@ curl http://faker.hook.io?property=name.findName&locale=de | |
|
||
## API | ||
|
||
|
||
### Faker.fake() | ||
|
||
As of version `v3.0.0` faker.js contains a super useful generator method `Faker.fake` for combining faker API methods using a mustache string format. | ||
|
||
**Example:** | ||
|
||
``` js | ||
console.log(faker.fake('{{name.lastName}}, {{name.firstName}} {{name.suffix}}')); | ||
console.log(faker.fake(', ')); | ||
// outputs: "Marks, Dean Sr." | ||
``` | ||
|
||
|
@@ -98,6 +100,8 @@ This will interpolate the format string with the value of methods `name.lastName | |
* future | ||
* between | ||
* recent | ||
* month | ||
* weekday | ||
* fake | ||
* finance | ||
* account | ||
|
@@ -212,6 +216,7 @@ faker.locale = "de"; | |
* en_US | ||
* en_au_ocker | ||
* es | ||
* es_MX | ||
* fa | ||
* fr | ||
* fr_CA | ||
|
@@ -279,7 +284,6 @@ See: https://github.com/lestoni/faker-cli | |
var randomName = faker.name.findName(); // Rowan Nikolaus | ||
var randomEmail = faker.internet.email(); // [email protected] | ||
var randomCard = faker.helpers.createCard(); // random contact card containing many properties | ||
|
||
## Version Release Schedule | ||
|
||
|
Oops, something went wrong.