You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| Git |`faker.git.commitMessage()`| feat: add products list page |
83
-
| Hacker |`faker.hacker.phrase()`| Try to reboot the SQL bus, maybe it will bypass the virtual application! |
84
-
| Helpers |`faker.helpers.userCard()`|`{ avatar: ‘...’, email: ‘{ first }{ last }{ number }@{domain}’, first: '...' }`<br/><br/>All of the values are self-consistent (e.g. same first + last name in the email, too) |
| Git |`faker.git.commitMessage()`| feat: add products list page |
82
+
| Hacker |`faker.hacker.phrase()`| Try to reboot the SQL bus, maybe it will bypass the virtual application! |
83
+
| Helpers |`faker.helpers.userCard()`|`{ avatar: ‘...’, email: ‘{ first }{ last }{ number }@{domain}’, first: '...' }`<br/><br/>All of the values are self-consistent (e.g. same first + last name in the email, too) |
| slugify | Removes unwanted characters from URI string|
259
-
| replaceSymbolWithNumber | Parses string for a symbol and replace it with a random number from 1-10|
260
-
| replaceSymbols | Parses string for symbols (numbers or letters) and replaces them appropriately (# will be replaced with number, ? with letter and \* will be replaced with number or letter) |
261
-
| replaceCreditCardSymbols | Replace symbols in a credit card schems including Luhn checksum|
262
-
| repeatString | String repeat helper, alternative to String.prototype.repeat|
263
-
| shuffle | Takes an array and randomizes it in place then returns it uses the modern version of the Fisher–Yates algorithm|
264
-
| mustache | Generates a string with mustache {{ }}|
265
-
| createCard | Generates a human card|
266
-
| contextualCard | Generates a human contextual card|
| slugify | Removes unwanted characters from URI string|
258
+
| replaceSymbolWithNumber | Parses string for a symbol and replace it with a random number from 1-10|
259
+
| replaceSymbols | Parses string for symbols (numbers or letters) and replaces them appropriately (# will be replaced with number, ? with letter and \* will be replaced with number or letter) |
260
+
| replaceCreditCardSymbols | Replace symbols in a credit card schems including Luhn checksum|
261
+
| repeatString | String repeat helper, alternative to String.prototype.repeat|
262
+
| shuffle | Takes an array and randomizes it in place then returns it uses the modern version of the Fisher–Yates algorithm|
263
+
| mustache | Generates a string with mustache {{ }}|
264
+
| createCard | Generates a human card|
265
+
| contextualCard | Generates a human contextual card|
266
+
| userCard | Generates a website user card|
267
+
| createTransaction | Generates a transaction|
269
268
270
269
- faker.image
271
270
@@ -468,37 +467,43 @@ Faker uses [gulp](http://gulpjs.com/) to automate its build process. Each build
468
467
### Browser Bundle
469
468
470
469
```shell
471
-
npm run browser
470
+
pnpm install
471
+
pnpm run build
472
+
pnpm run browser
472
473
```
473
474
474
475
### Testing
475
476
476
477
```shell
477
-
npm install
478
-
npm run test
478
+
pnpm install
479
+
pnpm run build
480
+
481
+
pnpm run test
482
+
# or
483
+
pnpm run coverage
479
484
```
480
485
481
-
You can view a code coverage report generated in coverage/lcov-report/index.html.
486
+
You can view a code coverage report generated in `coverage/index.html`.
482
487
483
488
### Developing the docs
484
489
485
490
```shell
486
491
# build the Faker library for the browser
487
492
# it's used inside of certain routes
488
-
npm run browser
493
+
pnpm run browser
489
494
490
-
npm run docs:dev
495
+
pnpm run docs:dev
491
496
```
492
497
493
498
### Building and serving the docs statically
494
499
495
500
```shell
496
501
# build the Faker library for the browser
497
502
# it's used inside of certain routes
498
-
npm run browser
503
+
pnpm run browser
499
504
500
-
npm run docs:build # Output docs to /dist
501
-
npm run docs:serve # Serve docs from /dist
505
+
pnpm run docs:build # Output docs to /dist
506
+
pnpm run docs:serve # Serve docs from /dist
502
507
```
503
508
504
509
### Deploying Documentation
@@ -510,8 +515,9 @@ The website is kindly hosted for free by the Netlify team under their Open Sourc
510
515
[JSDOC](https://jsdoc.app/) v3 HTML API documentation
511
516
512
517
```shell
513
-
npm run jsdoc
518
+
pnpm run jsdoc
514
519
```
515
520
516
521
## What happened to the original faker.js?
522
+
517
523
Read the [team update](https://fakerjs.dev/update.html) (January 14th, 2022).
0 commit comments