struct-fakerator 2.3.4 → 2.4.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (238) hide show
  1. package/README.md +12 -13
  2. package/biome.json +2 -1
  3. package/dist/airline-BUwgrfsj.d.ts +26 -0
  4. package/dist/airline-C0ManYED.d.mts +26 -0
  5. package/dist/animal-arG64NM6.d.mts +53 -0
  6. package/dist/animal-erAZXs_d.d.ts +53 -0
  7. package/dist/chunk-2R3Q64AD.mjs +28 -0
  8. package/dist/chunk-3HQMGDUF.js +98 -0
  9. package/dist/chunk-4UGSTE5Q.js +1968 -0
  10. package/dist/chunk-5U5KT6H4.js +61 -0
  11. package/dist/chunk-7GE2A5VT.mjs +43 -0
  12. package/dist/chunk-7R4M2AAS.js +25 -0
  13. package/dist/chunk-7YNCYSJY.js +19 -0
  14. package/dist/chunk-A5HM6XTD.js +76 -0
  15. package/dist/chunk-AONYMB6O.mjs +40 -0
  16. package/dist/chunk-ARUJ7L4V.mjs +64 -0
  17. package/dist/chunk-BB5LVHI7.mjs +46 -0
  18. package/dist/chunk-BELV2S6H.js +46 -0
  19. package/dist/chunk-BS7IEV74.mjs +1968 -0
  20. package/dist/chunk-BXJJGEM5.js +22 -0
  21. package/dist/chunk-CFX43E3I.mjs +22 -0
  22. package/dist/chunk-D7PC2EQM.mjs +73 -0
  23. package/dist/chunk-DF3HCW6W.js +43 -0
  24. package/dist/chunk-DVBKP7FB.mjs +31 -0
  25. package/dist/chunk-EDATUWC4.js +40 -0
  26. package/dist/chunk-FLNVEEY2.mjs +34 -0
  27. package/dist/chunk-GE7QO474.js +64 -0
  28. package/dist/chunk-H4XUR4CP.mjs +34 -0
  29. package/dist/chunk-HADENNJW.js +22 -0
  30. package/dist/chunk-HHL3SY7A.js +34 -0
  31. package/dist/chunk-HOVGSNA4.js +73 -0
  32. package/dist/chunk-J266ZY25.mjs +22 -0
  33. package/dist/chunk-J3IXKUJK.js +61 -0
  34. package/dist/chunk-J5ZX7PK3.js +34 -0
  35. package/dist/chunk-L7PFM742.mjs +49 -0
  36. package/dist/chunk-LBQLRQOQ.js +28 -0
  37. package/dist/chunk-LJKI4ZZ5.mjs +43 -0
  38. package/dist/chunk-M2J3MAM7.mjs +52 -0
  39. package/dist/chunk-NEE5QKPY.mjs +40 -0
  40. package/dist/chunk-OLSCXZ3D.mjs +98 -0
  41. package/dist/chunk-P65FYBLE.mjs +61 -0
  42. package/dist/chunk-PVPH6A5C.mjs +43 -0
  43. package/dist/chunk-RKTNWUZK.js +43 -0
  44. package/dist/chunk-S73SWVKV.js +31 -0
  45. package/dist/chunk-SYSS7JTS.js +49 -0
  46. package/dist/chunk-T5JPOARU.js +40 -0
  47. package/dist/chunk-TX7HRLKE.mjs +19 -0
  48. package/dist/chunk-USSK73G6.js +43 -0
  49. package/dist/chunk-VCWW76K4.mjs +61 -0
  50. package/dist/chunk-WJ5EC6UN.js +49 -0
  51. package/dist/chunk-X5TOZB77.mjs +43 -0
  52. package/dist/chunk-XG6RUZSI.mjs +16 -0
  53. package/dist/chunk-XL5V4E3Z.js +16 -0
  54. package/dist/chunk-XPZ47TRN.js +52 -0
  55. package/dist/chunk-YJWVP2PN.mjs +31 -0
  56. package/dist/chunk-YQWQUNOA.js +31 -0
  57. package/dist/chunk-YTTIRC5J.mjs +49 -0
  58. package/dist/chunk-YY2TF7WC.mjs +25 -0
  59. package/dist/chunk-ZPQWZLYI.js +43 -0
  60. package/dist/chunk-ZRQDW34U.mjs +76 -0
  61. package/dist/color-BmTZnKiW.d.mts +61 -0
  62. package/dist/color-WFinq_Y4.d.ts +61 -0
  63. package/dist/commerce-Ch71_dd2.d.ts +40 -0
  64. package/dist/commerce-IGFkOXjQ.d.mts +40 -0
  65. package/dist/common-CbuXAeQ-.d.mts +11 -0
  66. package/dist/common-Kp8LaAzK.d.ts +11 -0
  67. package/dist/company---O1IwYo.d.ts +35 -0
  68. package/dist/company-D7Cc_hsx.d.mts +35 -0
  69. package/dist/database-B8Wr1oXH.d.mts +23 -0
  70. package/dist/database-Dnsy3cQb.d.ts +23 -0
  71. package/dist/datatype-CAu_sc1g.d.ts +13 -0
  72. package/dist/datatype-gjFHrdMj.d.mts +13 -0
  73. package/dist/datetime-BDgsnqq_.d.mts +78 -0
  74. package/dist/datetime-BkidbR1O.d.ts +78 -0
  75. package/dist/finance-BZEmlfNQ.d.mts +90 -0
  76. package/dist/finance-Cn3DFbX4.d.ts +90 -0
  77. package/dist/food-CfxZX81O.d.mts +35 -0
  78. package/dist/food-tr11e_Qp.d.ts +35 -0
  79. package/dist/git-DoCI9ZYT.d.ts +31 -0
  80. package/dist/git-Feo1ntKa.d.mts +31 -0
  81. package/dist/hacker-X3zBTMoE.d.ts +26 -0
  82. package/dist/hacker-mGVIO_wL.d.mts +26 -0
  83. package/dist/image-BeZbZlyo.d.ts +56 -0
  84. package/dist/image-govZ7HjA.d.mts +56 -0
  85. package/dist/index.d.mts +2 -682
  86. package/dist/index.d.ts +2 -682
  87. package/dist/index.js +22 -2439
  88. package/dist/index.mjs +20 -2390
  89. package/dist/internet-CJEETk0v.d.mts +101 -0
  90. package/dist/internet-jHHnqVJG.d.ts +101 -0
  91. package/dist/location-CTA_Bq7w.d.mts +80 -0
  92. package/dist/location-CsVekxIU.d.ts +80 -0
  93. package/dist/lorem-BE4n3dVs.d.mts +62 -0
  94. package/dist/lorem-Btv0fltY.d.ts +62 -0
  95. package/dist/music-CQ3lnDvg.d.mts +20 -0
  96. package/dist/music-D3zj5REe.d.ts +20 -0
  97. package/dist/number-Bj9ydAOH.d.ts +47 -0
  98. package/dist/number-D9Wn_qjS.d.mts +47 -0
  99. package/dist/person-LLleVozS.d.ts +58 -0
  100. package/dist/person-OKRyYmeX.d.mts +58 -0
  101. package/dist/phone-Bc8UXPF3.d.ts +16 -0
  102. package/dist/phone-QbHXAqVF.d.mts +16 -0
  103. package/dist/science-BgXAZ3YR.d.ts +15 -0
  104. package/dist/science-CSN41yUZ.d.mts +15 -0
  105. package/dist/string-9w976kVk.d.mts +87 -0
  106. package/dist/string-Cm9TczI6.d.ts +87 -0
  107. package/dist/system-DOyHjHxs.d.mts +55 -0
  108. package/dist/system-DipW6DYb.d.ts +55 -0
  109. package/dist/type-C8Ny1fB6.d.mts +33 -0
  110. package/dist/type-C8Ny1fB6.d.ts +33 -0
  111. package/dist/utils/airline.d.mts +3 -0
  112. package/dist/utils/airline.d.ts +3 -0
  113. package/dist/utils/airline.js +12 -0
  114. package/dist/utils/airline.mjs +12 -0
  115. package/dist/utils/animal.d.mts +2 -0
  116. package/dist/utils/animal.d.ts +2 -0
  117. package/dist/utils/animal.js +36 -0
  118. package/dist/utils/animal.mjs +36 -0
  119. package/dist/utils/color.d.mts +3 -0
  120. package/dist/utils/color.d.ts +3 -0
  121. package/dist/utils/color.js +28 -0
  122. package/dist/utils/color.mjs +28 -0
  123. package/dist/utils/commerce.d.mts +2 -0
  124. package/dist/utils/commerce.d.ts +2 -0
  125. package/dist/utils/commerce.js +22 -0
  126. package/dist/utils/commerce.mjs +22 -0
  127. package/dist/utils/common.d.mts +2 -0
  128. package/dist/utils/common.d.ts +2 -0
  129. package/dist/utils/common.js +7 -0
  130. package/dist/utils/common.mjs +7 -0
  131. package/dist/utils/company.d.mts +2 -0
  132. package/dist/utils/company.d.ts +2 -0
  133. package/dist/utils/company.js +24 -0
  134. package/dist/utils/company.mjs +24 -0
  135. package/dist/utils/database.d.mts +2 -0
  136. package/dist/utils/database.d.ts +2 -0
  137. package/dist/utils/database.js +16 -0
  138. package/dist/utils/database.mjs +16 -0
  139. package/dist/utils/datatype.d.mts +2 -0
  140. package/dist/utils/datatype.d.ts +2 -0
  141. package/dist/utils/datatype.js +8 -0
  142. package/dist/utils/datatype.mjs +8 -0
  143. package/dist/utils/datetime.d.mts +2 -0
  144. package/dist/utils/datetime.d.ts +2 -0
  145. package/dist/utils/datetime.js +28 -0
  146. package/dist/utils/datetime.mjs +28 -0
  147. package/dist/utils/finance.d.mts +3 -0
  148. package/dist/utils/finance.d.ts +3 -0
  149. package/dist/utils/finance.js +44 -0
  150. package/dist/utils/finance.mjs +44 -0
  151. package/dist/utils/food.d.mts +2 -0
  152. package/dist/utils/food.d.ts +2 -0
  153. package/dist/utils/food.js +24 -0
  154. package/dist/utils/food.mjs +24 -0
  155. package/dist/utils/git.d.mts +2 -0
  156. package/dist/utils/git.d.ts +2 -0
  157. package/dist/utils/git.js +16 -0
  158. package/dist/utils/git.mjs +16 -0
  159. package/dist/utils/hacker.d.mts +2 -0
  160. package/dist/utils/hacker.d.ts +2 -0
  161. package/dist/utils/hacker.js +18 -0
  162. package/dist/utils/hacker.mjs +18 -0
  163. package/dist/utils/image.d.mts +2 -0
  164. package/dist/utils/image.d.ts +2 -0
  165. package/dist/utils/image.js +22 -0
  166. package/dist/utils/image.mjs +22 -0
  167. package/dist/utils/index.d.mts +27 -0
  168. package/dist/utils/index.d.ts +27 -0
  169. package/dist/utils/index.js +104 -0
  170. package/dist/utils/index.mjs +104 -0
  171. package/dist/utils/internet.d.mts +2 -0
  172. package/dist/utils/internet.d.ts +2 -0
  173. package/dist/utils/internet.js +46 -0
  174. package/dist/utils/internet.mjs +46 -0
  175. package/dist/utils/location.d.mts +2 -0
  176. package/dist/utils/location.d.ts +2 -0
  177. package/dist/utils/location.js +38 -0
  178. package/dist/utils/location.mjs +38 -0
  179. package/dist/utils/lorem.d.mts +2 -0
  180. package/dist/utils/lorem.d.ts +2 -0
  181. package/dist/utils/lorem.js +24 -0
  182. package/dist/utils/lorem.mjs +24 -0
  183. package/dist/utils/music.d.mts +2 -0
  184. package/dist/utils/music.d.ts +2 -0
  185. package/dist/utils/music.js +14 -0
  186. package/dist/utils/music.mjs +14 -0
  187. package/dist/utils/number.d.mts +2 -0
  188. package/dist/utils/number.d.ts +2 -0
  189. package/dist/utils/number.js +18 -0
  190. package/dist/utils/number.mjs +18 -0
  191. package/dist/utils/person.d.mts +3 -0
  192. package/dist/utils/person.d.ts +3 -0
  193. package/dist/utils/person.js +36 -0
  194. package/dist/utils/person.mjs +36 -0
  195. package/dist/utils/phone.d.mts +2 -0
  196. package/dist/utils/phone.d.ts +2 -0
  197. package/dist/utils/phone.js +10 -0
  198. package/dist/utils/phone.mjs +10 -0
  199. package/dist/utils/science.d.mts +3 -0
  200. package/dist/utils/science.d.ts +3 -0
  201. package/dist/utils/science.js +10 -0
  202. package/dist/utils/science.mjs +10 -0
  203. package/dist/utils/string.d.mts +2 -0
  204. package/dist/utils/string.d.ts +2 -0
  205. package/dist/utils/string.js +26 -0
  206. package/dist/utils/string.mjs +26 -0
  207. package/dist/utils/system.d.mts +2 -0
  208. package/dist/utils/system.d.ts +2 -0
  209. package/dist/utils/system.js +30 -0
  210. package/dist/utils/system.mjs +30 -0
  211. package/dist/utils/vehicle.d.mts +2 -0
  212. package/dist/utils/vehicle.d.ts +2 -0
  213. package/dist/utils/vehicle.js +24 -0
  214. package/dist/utils/vehicle.mjs +24 -0
  215. package/dist/utils/word.d.mts +75 -0
  216. package/dist/utils/word.d.ts +75 -0
  217. package/dist/utils/word.js +28 -0
  218. package/dist/utils/word.mjs +28 -0
  219. package/dist/vehicle-DmBDda98.d.mts +35 -0
  220. package/dist/vehicle-rnBz1Za2.d.ts +35 -0
  221. package/package.json +59 -10
  222. package/src/create_config.test.ts +4 -4
  223. package/src/create_config.ts +7 -7
  224. package/src/create_generator_fn.test.ts +11 -11
  225. package/src/create_generator_fn.ts +8 -8
  226. package/src/index.ts +0 -1
  227. package/src/utils/food.ts +43 -0
  228. package/src/utils/git.ts +25 -0
  229. package/src/utils/hacker.ts +28 -0
  230. package/src/utils/image.ts +39 -0
  231. package/src/utils/index.ts +10 -29
  232. package/src/utils/internet.ts +93 -0
  233. package/src/utils/location.ts +78 -0
  234. package/src/utils/music.ts +18 -0
  235. package/src/utils/science.ts +11 -0
  236. package/src/utils/system.ts +59 -0
  237. package/src/utils/vehicle.ts +39 -0
  238. package/tsup.config.ts +8 -0
package/package.json CHANGED
@@ -1,20 +1,65 @@
1
1
  {
2
2
  "name": "struct-fakerator",
3
- "version": "2.3.4",
3
+ "version": "2.4.5",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
7
7
  "types": "dist/index.d.ts",
8
8
  "exports": {
9
- "module": "./dist/index.mjs",
10
- "types": "./dist/index.d.ts",
11
- "import": "./dist/index.mjs",
12
- "require": "./dist/index.js"
13
- },
14
- "scripts": {
15
- "build": "tsup src/index.ts --format cjs,esm --dts",
16
- "publish": "pnpm build && pnpm publish --access public",
17
- "test": "vitest src"
9
+ ".": {
10
+ "default": {
11
+ "types": "./dist/index.d.ts",
12
+ "default": "./dist/index.mjs"
13
+ },
14
+ "require": {
15
+ "types": "./dist/index.d.ts",
16
+ "default": "./dist/index.js"
17
+ },
18
+ "import": {
19
+ "types": "./dist/index.d.ts",
20
+ "default": "./dist/index.mjs"
21
+ },
22
+ "module": {
23
+ "types": "./dist/index.d.ts",
24
+ "default": "./dist/index.mjs"
25
+ }
26
+ },
27
+ "./utils": {
28
+ "default": {
29
+ "types": "./dist/utils/index.d.ts",
30
+ "default": "./dist/utils/index.mjs"
31
+ },
32
+ "require": {
33
+ "types": "./dist/utils/index.d.ts",
34
+ "default": "./dist/utils/index.js"
35
+ },
36
+ "import": {
37
+ "types": "./dist/utils/index.d.ts",
38
+ "default": "./dist/utils/index.mjs"
39
+ },
40
+ "module": {
41
+ "types": "./dist/utils/index.d.ts",
42
+ "default": "./dist/utils/index.mjs"
43
+ }
44
+ },
45
+ "./utils/*": {
46
+ "default": {
47
+ "types": "./dist/utils/*.d.ts",
48
+ "default": "./dist/utils/*.mjs"
49
+ },
50
+ "require": {
51
+ "types": "./dist/utils/*.d.ts",
52
+ "default": "./dist/utils/*.js"
53
+ },
54
+ "import": {
55
+ "types": "./dist/utils/*.d.ts",
56
+ "default": "./dist/utils/*.mjs"
57
+ },
58
+ "module": {
59
+ "types": "./dist/utils/*.d.ts",
60
+ "default": "./dist/utils/*.mjs"
61
+ }
62
+ }
18
63
  },
19
64
  "keywords": [],
20
65
  "author": "FizzyElt",
@@ -32,5 +77,9 @@
32
77
  },
33
78
  "publishConfig": {
34
79
  "access": "public"
80
+ },
81
+ "scripts": {
82
+ "build": "tsup",
83
+ "test": "vitest src"
35
84
  }
36
85
  }
@@ -1,12 +1,12 @@
1
1
  import { expect, test } from "vitest";
2
2
 
3
3
  import {
4
- createValueConfig,
5
- createSelectionConfig,
6
4
  createArrayConfig,
7
- createTupleConfig,
8
- createObjectConfig,
9
5
  createBoundedSeriesConfig,
6
+ createObjectConfig,
7
+ createSelectionConfig,
8
+ createTupleConfig,
9
+ createValueConfig,
10
10
  } from "./create_config";
11
11
 
12
12
  test("createValueConfig", () => {
@@ -1,18 +1,18 @@
1
1
  import {
2
- valueConfigScheme,
3
2
  arrayConfigScheme,
3
+ boundedSeriesScheme,
4
+ objConfigScheme,
4
5
  selectionConfigScheme,
5
6
  tupleConfigScheme,
6
- objConfigScheme,
7
- boundedSeriesScheme,
7
+ valueConfigScheme,
8
8
  } from "./config_scheme";
9
9
  import type {
10
- ValueConfig,
11
- SelectionConfig,
12
- ObjectConfig,
13
10
  ArrayConfig,
14
- TupleConfig,
15
11
  BoundedSeriesConfig,
12
+ ObjectConfig,
13
+ SelectionConfig,
14
+ TupleConfig,
15
+ ValueConfig,
16
16
  } from "./type";
17
17
 
18
18
  /**
@@ -1,19 +1,19 @@
1
- import { describe, test, expect } from "vitest";
1
+ import { describe, expect, test } from "vitest";
2
+ import {
3
+ createArrayConfig,
4
+ createObjectConfig,
5
+ createTupleConfig,
6
+ createValueConfig,
7
+ } from "./create_config";
2
8
  import {
3
- createValueGenerator,
4
- createSelectionGenerator,
5
9
  createArrayGenerator,
6
- createTupleGenerator,
7
- createObjectGenerator,
8
10
  createBoundedSeriesGenerator,
9
11
  createGeneratorByType,
12
+ createObjectGenerator,
13
+ createSelectionGenerator,
14
+ createTupleGenerator,
15
+ createValueGenerator,
10
16
  } from "./create_generator_fn";
11
- import {
12
- createValueConfig,
13
- createTupleConfig,
14
- createObjectConfig,
15
- createArrayConfig,
16
- } from "./create_config";
17
17
  import type { ObjectConfig } from "./type";
18
18
 
19
19
  describe("createValueGenerator", () => {
@@ -1,21 +1,21 @@
1
1
  import { faker } from "@faker-js/faker";
2
2
 
3
3
  import {
4
- valueConfigScheme,
5
- selectionConfigScheme,
6
4
  arrayConfigScheme,
7
- objConfigScheme,
8
5
  boundedSeriesScheme,
6
+ objConfigScheme,
7
+ selectionConfigScheme,
9
8
  tupleConfigScheme,
9
+ valueConfigScheme,
10
10
  } from "./config_scheme";
11
11
  import type {
12
- ValueConfig,
13
- SelectionConfig,
14
- ObjectConfig,
15
- TupleConfig,
16
12
  ArrayConfig,
17
- Result,
18
13
  BoundedSeriesConfig,
14
+ ObjectConfig,
15
+ Result,
16
+ SelectionConfig,
17
+ TupleConfig,
18
+ ValueConfig,
19
19
  } from "./type";
20
20
 
21
21
  type AllConfig<T> =
package/src/index.ts CHANGED
@@ -1,4 +1,3 @@
1
1
  export * from "./create_config";
2
2
  export * from "./create_generator_fn";
3
3
  export * from "./type";
4
- export * from "./utils";
@@ -0,0 +1,43 @@
1
+ import { faker } from "@faker-js/faker";
2
+ import { createValueConfig } from "../create_config";
3
+
4
+ /** Food [adjective](https://fakerjs.dev/api/food.html#adjective) */
5
+ export const adjective = (
6
+ ...options: Parameters<typeof faker.food.adjective>
7
+ ) => createValueConfig(() => faker.food.adjective(...options));
8
+
9
+ /** Food [description](https://fakerjs.dev/api/food.html#description) */
10
+ export const description = (
11
+ ...options: Parameters<typeof faker.food.description>
12
+ ) => createValueConfig(() => faker.food.description(...options));
13
+
14
+ /** Food [dish](https://fakerjs.dev/api/food.html#dish) */
15
+ export const dish = (...options: Parameters<typeof faker.food.dish>) =>
16
+ createValueConfig(() => faker.food.dish(...options));
17
+
18
+ /** Food [ethnicCategory](https://fakerjs.dev/api/food.html#ethnicCategory) */
19
+ export const ethnicCategory = (
20
+ ...options: Parameters<typeof faker.food.ethnicCategory>
21
+ ) => createValueConfig(() => faker.food.ethnicCategory(...options));
22
+
23
+ /** Food [fruit](https://fakerjs.dev/api/food.html#fruit) */
24
+ export const fruit = (...options: Parameters<typeof faker.food.fruit>) =>
25
+ createValueConfig(() => faker.food.fruit(...options));
26
+
27
+ /** Food [ingredient](https://fakerjs.dev/api/food.html#ingredient) */
28
+ export const ingredient = (
29
+ ...options: Parameters<typeof faker.food.ingredient>
30
+ ) => createValueConfig(() => faker.food.ingredient(...options));
31
+
32
+ /** Food [meat](https://fakerjs.dev/api/food.html#meat) */
33
+ export const meat = (...options: Parameters<typeof faker.food.meat>) =>
34
+ createValueConfig(() => faker.food.meat(...options));
35
+
36
+ /** Food [spice](https://fakerjs.dev/api/food.html#spice) */
37
+ export const spice = (...options: Parameters<typeof faker.food.spice>) =>
38
+ createValueConfig(() => faker.food.spice(...options));
39
+
40
+ /** Food [vegetable](https://fakerjs.dev/api/food.html#vegetable) */
41
+ export const vegetable = (
42
+ ...options: Parameters<typeof faker.food.vegetable>
43
+ ) => createValueConfig(() => faker.food.vegetable(...options));
@@ -0,0 +1,25 @@
1
+ import { faker } from "@faker-js/faker";
2
+ import { createValueConfig } from "../create_config";
3
+
4
+ /** Git [branch](https://fakerjs.dev/api/git.html#branch) */
5
+ export const branch = (...options: Parameters<typeof faker.git.branch>) =>
6
+ createValueConfig(() => faker.git.branch(...options));
7
+
8
+ /** Git [commitDate](https://fakerjs.dev/api/git.html#commitDate) */
9
+ export const commitDate = (
10
+ ...options: Parameters<typeof faker.git.commitDate>
11
+ ) => createValueConfig(() => faker.git.commitDate(...options));
12
+
13
+ /** Git [commitEntry](https://fakerjs.dev/api/git.html#commitEntry) */
14
+ export const commitEntry = (
15
+ ...options: Parameters<typeof faker.git.commitEntry>
16
+ ) => createValueConfig(() => faker.git.commitEntry(...options));
17
+
18
+ /** Git [commitMessage](https://fakerjs.dev/api/git.html#commitMessage) */
19
+ export const commitMessage = (
20
+ ...options: Parameters<typeof faker.git.commitMessage>
21
+ ) => createValueConfig(() => faker.git.commitMessage(...options));
22
+
23
+ /** Git [commitSha](https://fakerjs.dev/api/git.html#commitSha) */
24
+ export const commitSha = (...options: Parameters<typeof faker.git.commitSha>) =>
25
+ createValueConfig(() => faker.git.commitSha(...options));
@@ -0,0 +1,28 @@
1
+ import { faker } from "@faker-js/faker";
2
+ import { createValueConfig } from "../create_config";
3
+
4
+ /** Hacker [abbreviation](https://fakerjs.dev/api/hacker.html#abbreviation) */
5
+ export const abbreviation = (
6
+ ...options: Parameters<typeof faker.hacker.abbreviation>
7
+ ) => createValueConfig(() => faker.hacker.abbreviation(...options));
8
+
9
+ /** Hacker [adjective](https://fakerjs.dev/api/hacker.html#adjective) */
10
+ export const adjective = (
11
+ ...options: Parameters<typeof faker.hacker.adjective>
12
+ ) => createValueConfig(() => faker.hacker.adjective(...options));
13
+
14
+ /** Hacker [ingverb](https://fakerjs.dev/api/hacker.html#ingverb) */
15
+ export const ingverb = (...options: Parameters<typeof faker.hacker.ingverb>) =>
16
+ createValueConfig(() => faker.hacker.ingverb(...options));
17
+
18
+ /** Hacker [noun](https://fakerjs.dev/api/hacker.html#noun) */
19
+ export const noun = (...options: Parameters<typeof faker.hacker.noun>) =>
20
+ createValueConfig(() => faker.hacker.noun(...options));
21
+
22
+ /** Hacker [phrase](https://fakerjs.dev/api/hacker.html#phrase) */
23
+ export const phrase = (...options: Parameters<typeof faker.hacker.phrase>) =>
24
+ createValueConfig(() => faker.hacker.phrase(...options));
25
+
26
+ /** Hacker [verb](https://fakerjs.dev/api/hacker.html#verb) */
27
+ export const verb = (...options: Parameters<typeof faker.hacker.verb>) =>
28
+ createValueConfig(() => faker.hacker.verb(...options));
@@ -0,0 +1,39 @@
1
+ import { faker } from "@faker-js/faker";
2
+ import { createValueConfig } from "../create_config";
3
+
4
+ /** Image [avatar](https://fakerjs.dev/api/image.html#avatar) */
5
+ export const avatar = (...options: Parameters<typeof faker.image.avatar>) =>
6
+ createValueConfig(() => faker.image.avatar(...options));
7
+
8
+ /** Image [avatarGitHub](https://fakerjs.dev/api/image.html#avatarGitHub) */
9
+ export const avatarGitHub = (
10
+ ...options: Parameters<typeof faker.image.avatarGitHub>
11
+ ) => createValueConfig(() => faker.image.avatarGitHub(...options));
12
+
13
+ /** Image [avatarLegacy](https://fakerjs.dev/api/image.html#avatarLegacy) */
14
+ export const avatarLegacy = (
15
+ ...options: Parameters<typeof faker.image.avatarLegacy>
16
+ ) => createValueConfig(() => faker.image.avatarLegacy(...options));
17
+
18
+ /** Image [dataUri](https://fakerjs.dev/api/image.html#dataUri) */
19
+ export const dataUri = (...options: Parameters<typeof faker.image.dataUri>) =>
20
+ createValueConfig(() => faker.image.dataUri(...options));
21
+
22
+ /** Image [url](https://fakerjs.dev/api/image.html#url) */
23
+ export const url = (...options: Parameters<typeof faker.image.url>) =>
24
+ createValueConfig(() => faker.image.url(...options));
25
+
26
+ /** Image [urlLoremFlickr](https://fakerjs.dev/api/image.html#urlLoremFlickr) */
27
+ export const urlLoremFlickr = (
28
+ ...options: Parameters<typeof faker.image.urlLoremFlickr>
29
+ ) => createValueConfig(() => faker.image.urlLoremFlickr(...options));
30
+
31
+ /** Image [urlPicsumPhotos](https://fakerjs.dev/api/image.html#urlPicsumPhotos) */
32
+ export const urlPicsumPhotos = (
33
+ ...options: Parameters<typeof faker.image.urlPicsumPhotos>
34
+ ) => createValueConfig(() => faker.image.urlPicsumPhotos(...options));
35
+
36
+ /** Image [urlPlaceholder](https://fakerjs.dev/api/image.html#urlPlaceholder) */
37
+ export const urlPlaceholder = (
38
+ ...options: Parameters<typeof faker.image.urlPlaceholder>
39
+ ) => createValueConfig(() => faker.image.urlPlaceholder(...options));
@@ -1,44 +1,25 @@
1
- /** [Airline](https://fakerjs.dev/api/airline.html) */
2
1
  export * as Airline from "./airline";
3
-
4
- /** [Animal](https://fakerjs.dev/api/animal.html) */
5
2
  export * as Animal from "./animal";
6
-
7
- /** [Color](https://fakerjs.dev/api/color.html) */
8
3
  export * as Color from "./color";
9
-
10
- /** [Commerce](https://fakerjs.dev/api/commerce.html) */
11
4
  export * as Commerce from "./commerce";
12
-
13
- /** [Common](https://fakerjs.dev/api/common.html) */
14
5
  export * as Common from "./common";
15
-
16
- /** [Company](https://fakerjs.dev/api/company.html) */
17
6
  export * as Company from "./company";
18
-
19
- /** [Database](https://fakerjs.dev/api/database.html) */
20
7
  export * as Database from "./database";
21
-
22
- /** [Datatype](https://fakerjs.dev/api/datatype.html) */
23
8
  export * as Datatype from "./datatype";
24
-
25
- /** [DateTime](https://fakerjs.dev/api/date.html) */
26
9
  export * as DateTime from "./datetime";
27
-
28
- /** [Finance](https://fakerjs.dev/api/finance.html) */
29
10
  export * as Finance from "./finance";
30
-
31
- /** [Lorem](https://fakerjs.dev/api/lorem.html) */
11
+ export * as Food from "./food";
12
+ export * as Git from "./git";
13
+ export * as Hacker from "./hacker";
14
+ export * as Image from "./image";
15
+ export * as Internet from "./internet";
16
+ export * as Location from "./location";
32
17
  export * as Lorem from "./lorem";
33
-
34
- /** [Number](https://fakerjs.dev/api/number.html) */
18
+ export * as Music from "./music";
35
19
  export * as Number from "./number";
36
-
37
- /** [Person](https://fakerjs.dev/api/person.html) */
38
20
  export * as Person from "./person";
39
-
40
- /** [Phone](https://fakerjs.dev/api/phone.html) */
41
21
  export * as Phone from "./phone";
42
-
43
- /** [String](https://fakerjs.dev/api/string.html) */
22
+ export * as Science from "./science";
44
23
  export * as String from "./string";
24
+ export * as System from "./system";
25
+ export * as Vehicle from "./vehicle";
@@ -0,0 +1,93 @@
1
+ import { faker } from "@faker-js/faker";
2
+ import { createValueConfig } from "../create_config";
3
+
4
+ /** Internet [color](https://fakerjs.dev/api/internet.html#color) */
5
+ export const color = (...options: Parameters<typeof faker.internet.color>) =>
6
+ createValueConfig(() => faker.internet.color(...options));
7
+
8
+ /** Internet [displayName](https://fakerjs.dev/api/internet.html#displayName) */
9
+ export const displayName = (
10
+ ...options: Parameters<typeof faker.internet.displayName>
11
+ ) => createValueConfig(() => faker.internet.displayName(...options));
12
+
13
+ /** Internet [domainName](https://fakerjs.dev/api/internet.html#domainName) */
14
+ export const domainName = (
15
+ ...options: Parameters<typeof faker.internet.domainName>
16
+ ) => createValueConfig(() => faker.internet.domainName(...options));
17
+
18
+ /** Internet [domainSuffix](https://fakerjs.dev/api/internet.html#domainSuffix) */
19
+ export const domainSuffix = (
20
+ ...options: Parameters<typeof faker.internet.domainSuffix>
21
+ ) => createValueConfig(() => faker.internet.domainSuffix(...options));
22
+
23
+ /** Internet [domainWord](https://fakerjs.dev/api/internet.html#domainWord) */
24
+ export const domainWord = (
25
+ ...options: Parameters<typeof faker.internet.domainWord>
26
+ ) => createValueConfig(() => faker.internet.domainWord(...options));
27
+
28
+ /** Internet [email](https://fakerjs.dev/api/internet.html#email) */
29
+ export const email = (...options: Parameters<typeof faker.internet.email>) =>
30
+ createValueConfig(() => faker.internet.email(...options));
31
+
32
+ /** Internet [emoji](https://fakerjs.dev/api/internet.html#emoji) */
33
+ export const emoji = (...options: Parameters<typeof faker.internet.emoji>) =>
34
+ createValueConfig(() => faker.internet.emoji(...options));
35
+
36
+ /** Internet [exampleEmail](https://fakerjs.dev/api/internet.html#exampleEmail) */
37
+ export const exampleEmail = (
38
+ ...options: Parameters<typeof faker.internet.exampleEmail>
39
+ ) => createValueConfig(() => faker.internet.exampleEmail(...options));
40
+
41
+ /** Internet [httpMethod](https://fakerjs.dev/api/internet.html#httpMethod) */
42
+ export const httpMethod = (
43
+ ...options: Parameters<typeof faker.internet.httpMethod>
44
+ ) => createValueConfig(() => faker.internet.httpMethod(...options));
45
+
46
+ /** Internet [httpStatusCode](https://fakerjs.dev/api/internet.html#httpStatusCode) */
47
+ export const httpStatusCode = (
48
+ ...options: Parameters<typeof faker.internet.httpStatusCode>
49
+ ) => createValueConfig(() => faker.internet.httpStatusCode(...options));
50
+
51
+ /** Internet [ip](https://fakerjs.dev/api/internet.html#ip) */
52
+ export const ip = (...options: Parameters<typeof faker.internet.ip>) =>
53
+ createValueConfig(() => faker.internet.ip(...options));
54
+
55
+ /** Internet [ipv4](https://fakerjs.dev/api/internet.html#ipv4) */
56
+ export const ipv4 = (...options: Parameters<typeof faker.internet.ipv4>) =>
57
+ createValueConfig(() => faker.internet.ipv4(...options));
58
+
59
+ /** Internet [ipv6](https://fakerjs.dev/api/internet.html#ipv6) */
60
+ export const ipv6 = (...options: Parameters<typeof faker.internet.ipv6>) =>
61
+ createValueConfig(() => faker.internet.ipv6(...options));
62
+
63
+ /** Internet [mac](https://fakerjs.dev/api/internet.html#mac) */
64
+ export const mac = (...options: Parameters<typeof faker.internet.mac>) =>
65
+ createValueConfig(() => faker.internet.mac(...options));
66
+
67
+ /** Internet [password](https://fakerjs.dev/api/internet.html#password) */
68
+ export const password = (
69
+ ...options: Parameters<typeof faker.internet.password>
70
+ ) => createValueConfig(() => faker.internet.password(...options));
71
+
72
+ /** Internet [port](https://fakerjs.dev/api/internet.html#port) */
73
+ export const port = (...options: Parameters<typeof faker.internet.port>) =>
74
+ createValueConfig(() => faker.internet.port(...options));
75
+
76
+ /** Internet [protocol](https://fakerjs.dev/api/internet.html#protocol) */
77
+ export const protocol = (
78
+ ...options: Parameters<typeof faker.internet.protocol>
79
+ ) => createValueConfig(() => faker.internet.protocol(...options));
80
+
81
+ /** Internet [url](https://fakerjs.dev/api/internet.html#url) */
82
+ export const url = (...options: Parameters<typeof faker.internet.url>) =>
83
+ createValueConfig(() => faker.internet.url(...options));
84
+
85
+ /** Internet [userAgent](https://fakerjs.dev/api/internet.html#userAgent) */
86
+ export const userAgent = (
87
+ ...options: Parameters<typeof faker.internet.userAgent>
88
+ ) => createValueConfig(() => faker.internet.userAgent(...options));
89
+
90
+ /** Internet [userName](https://fakerjs.dev/api/internet.html#userName) */
91
+ export const userName = (
92
+ ...options: Parameters<typeof faker.internet.userName>
93
+ ) => createValueConfig(() => faker.internet.userName(...options));
@@ -0,0 +1,78 @@
1
+ import { faker } from "@faker-js/faker";
2
+ import { createValueConfig } from "../create_config";
3
+
4
+ /** Location [buildingNumber](https://fakerjs.dev/api/location.html#buildingNumber) */
5
+ export const buildingNumber = (
6
+ ...options: Parameters<typeof faker.location.buildingNumber>
7
+ ) => createValueConfig(() => faker.location.buildingNumber(...options));
8
+
9
+ /** Location [cardinalDirection](https://fakerjs.dev/api/location.html#cardinalDirection) */
10
+ export const cardinalDirection = (
11
+ ...options: Parameters<typeof faker.location.cardinalDirection>
12
+ ) => createValueConfig(() => faker.location.cardinalDirection(...options));
13
+
14
+ /** Location [city](https://fakerjs.dev/api/location.html#city) */
15
+ export const city = (...options: Parameters<typeof faker.location.city>) =>
16
+ createValueConfig(() => faker.location.city(...options));
17
+
18
+ /** Location [country](https://fakerjs.dev/api/location.html#country) */
19
+ export const country = (
20
+ ...options: Parameters<typeof faker.location.country>
21
+ ) => createValueConfig(() => faker.location.country(...options));
22
+
23
+ /** Location [countryCode](https://fakerjs.dev/api/location.html#countryCode) */
24
+ export const countryCode = (
25
+ ...options: Parameters<typeof faker.location.countryCode>
26
+ ) => createValueConfig(() => faker.location.countryCode(...options));
27
+
28
+ /** Location [county](https://fakerjs.dev/api/location.html#county) */
29
+ export const county = (...options: Parameters<typeof faker.location.county>) =>
30
+ createValueConfig(() => faker.location.county(...options));
31
+
32
+ /** Location [direction](https://fakerjs.dev/api/location.html#direction) */
33
+ export const direction = (
34
+ ...options: Parameters<typeof faker.location.direction>
35
+ ) => createValueConfig(() => faker.location.direction(...options));
36
+
37
+ /** Location [latitude](https://fakerjs.dev/api/location.html#latitude) */
38
+ export const latitude = (
39
+ ...options: Parameters<typeof faker.location.latitude>
40
+ ) => createValueConfig(() => faker.location.latitude(...options));
41
+
42
+ /** Location [longitude](https://fakerjs.dev/api/location.html#longitude) */
43
+ export const longitude = (
44
+ ...options: Parameters<typeof faker.location.longitude>
45
+ ) => createValueConfig(() => faker.location.longitude(...options));
46
+
47
+ /** Location [nearbyGPSCoordinate](https://fakerjs.dev/api/location.html#nearbyGPSCoordinate) */
48
+ export const nearbyGPSCoordinate = (
49
+ ...options: Parameters<typeof faker.location.nearbyGPSCoordinate>
50
+ ) => createValueConfig(() => faker.location.nearbyGPSCoordinate(...options));
51
+
52
+ /** Location [ordinalDirection](https://fakerjs.dev/api/location.html#ordinalDirection) */
53
+ export const ordinalDirection = (
54
+ ...options: Parameters<typeof faker.location.ordinalDirection>
55
+ ) => createValueConfig(() => faker.location.ordinalDirection(...options));
56
+
57
+ /** Location [secondaryAddress](https://fakerjs.dev/api/location.html#secondaryAddress) */
58
+ export const secondaryAddress = (
59
+ ...options: Parameters<typeof faker.location.secondaryAddress>
60
+ ) => createValueConfig(() => faker.location.secondaryAddress(...options));
61
+
62
+ /** Location [state](https://fakerjs.dev/api/location.html#state) */
63
+ export const state = (...options: Parameters<typeof faker.location.state>) =>
64
+ createValueConfig(() => faker.location.state(...options));
65
+
66
+ /** Location [street](https://fakerjs.dev/api/location.html#street) */
67
+ export const street = (...options: Parameters<typeof faker.location.street>) =>
68
+ createValueConfig(() => faker.location.street(...options));
69
+
70
+ /** Location [streetAddress](https://fakerjs.dev/api/location.html#streetAddress) */
71
+ export const streetAddress = (
72
+ ...options: Parameters<typeof faker.location.streetAddress>
73
+ ) => createValueConfig(() => faker.location.streetAddress(...options));
74
+
75
+ /** Location [timeZone](https://fakerjs.dev/api/location.html#timeZone) */
76
+ export const timeZone = (
77
+ ...options: Parameters<typeof faker.location.timeZone>
78
+ ) => createValueConfig(() => faker.location.timeZone(...options));
@@ -0,0 +1,18 @@
1
+ import { faker } from "@faker-js/faker";
2
+ import { createValueConfig } from "../create_config";
3
+
4
+ /** Music [album](https://fakerjs.dev/api/music.html#album) */
5
+ export const album = (...options: Parameters<typeof faker.music.album>) =>
6
+ createValueConfig(() => faker.music.album(...options));
7
+
8
+ /** Music [artist](https://fakerjs.dev/api/music.html#artist) */
9
+ export const artist = (...options: Parameters<typeof faker.music.artist>) =>
10
+ createValueConfig(() => faker.music.artist(...options));
11
+
12
+ /** Music [genre](https://fakerjs.dev/api/music.html#genre) */
13
+ export const genre = (...options: Parameters<typeof faker.music.genre>) =>
14
+ createValueConfig(() => faker.music.genre(...options));
15
+
16
+ /** Music [songName](https://fakerjs.dev/api/music.html#songName) */
17
+ export const songName = (...options: Parameters<typeof faker.music.songName>) =>
18
+ createValueConfig(() => faker.music.songName(...options));
@@ -0,0 +1,11 @@
1
+ import { faker } from "@faker-js/faker";
2
+ import { createValueConfig } from "../create_config";
3
+
4
+ /** Science [chemicalElement](https://fakerjs.dev/api/science.html#chemicalElement) */
5
+ export const chemicalElement = (
6
+ ...options: Parameters<typeof faker.science.chemicalElement>
7
+ ) => createValueConfig(() => faker.science.chemicalElement(...options));
8
+
9
+ /** Science [unit](https://fakerjs.dev/api/science.html#unit) */
10
+ export const unit = (...options: Parameters<typeof faker.science.unit>) =>
11
+ createValueConfig(() => faker.science.unit(...options));
@@ -0,0 +1,59 @@
1
+ import { faker } from "@faker-js/faker";
2
+ import { createValueConfig } from "../create_config";
3
+
4
+ /** System [commonFileExt](https://fakerjs.dev/api/system.html#commonFileExt) */
5
+ export const commonFileExt = (
6
+ ...options: Parameters<typeof faker.system.commonFileExt>
7
+ ) => createValueConfig(() => faker.system.commonFileExt(...options));
8
+
9
+ /** System [commonFileName](https://fakerjs.dev/api/system.html#commonFileName) */
10
+ export const commonFileName = (
11
+ ...options: Parameters<typeof faker.system.commonFileName>
12
+ ) => createValueConfig(() => faker.system.commonFileName(...options));
13
+
14
+ /** System [commonFileType](https://fakerjs.dev/api/system.html#commonFileType) */
15
+ export const commonFileType = (
16
+ ...options: Parameters<typeof faker.system.commonFileType>
17
+ ) => createValueConfig(() => faker.system.commonFileType(...options));
18
+
19
+ /** System [cron](https://fakerjs.dev/api/system.html#cron) */
20
+ export const cron = (...options: Parameters<typeof faker.system.cron>) =>
21
+ createValueConfig(() => faker.system.cron(...options));
22
+
23
+ /** System [directoryPath](https://fakerjs.dev/api/system.html#directoryPath) */
24
+ export const directoryPath = (
25
+ ...options: Parameters<typeof faker.system.directoryPath>
26
+ ) => createValueConfig(() => faker.system.directoryPath(...options));
27
+
28
+ /** System [fileExt](https://fakerjs.dev/api/system.html#fileExt) */
29
+ export const fileExt = (...options: Parameters<typeof faker.system.fileExt>) =>
30
+ createValueConfig(() => faker.system.fileExt(...options));
31
+
32
+ /** System [fileName](https://fakerjs.dev/api/system.html#fileName) */
33
+ export const fileName = (
34
+ ...options: Parameters<typeof faker.system.fileName>
35
+ ) => createValueConfig(() => faker.system.fileName(...options));
36
+
37
+ /** System [filePath](https://fakerjs.dev/api/system.html#filePath) */
38
+ export const filePath = (
39
+ ...options: Parameters<typeof faker.system.filePath>
40
+ ) => createValueConfig(() => faker.system.filePath(...options));
41
+
42
+ /** System [fileType](https://fakerjs.dev/api/system.html#fileType) */
43
+ export const fileType = (
44
+ ...options: Parameters<typeof faker.system.fileType>
45
+ ) => createValueConfig(() => faker.system.fileType(...options));
46
+
47
+ /** System [mimeType](https://fakerjs.dev/api/system.html#mimeType) */
48
+ export const mimeType = (
49
+ ...options: Parameters<typeof faker.system.mimeType>
50
+ ) => createValueConfig(() => faker.system.mimeType(...options));
51
+
52
+ /** System [networkInterface](https://fakerjs.dev/api/system.html#networkInterface) */
53
+ export const networkInterface = (
54
+ ...options: Parameters<typeof faker.system.networkInterface>
55
+ ) => createValueConfig(() => faker.system.networkInterface(...options));
56
+
57
+ /** System [semver](https://fakerjs.dev/api/system.html#semver) */
58
+ export const semver = (...options: Parameters<typeof faker.system.semver>) =>
59
+ createValueConfig(() => faker.system.semver(...options));