struct-fakerator 2.8.9 → 3.0.0
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.
- package/LICENSE +21 -0
- package/dist/config.cjs +51 -0
- package/dist/config.js +2 -51
- package/dist/config_scheme.cjs +95 -0
- package/dist/config_scheme.js +24 -73
- package/dist/create_config.cjs +110 -0
- package/dist/create_config.js +9 -58
- package/dist/{create_generator_fn.mjs → create_generator_fn.cjs} +63 -11
- package/dist/create_generator_fn.js +11 -63
- package/dist/generator_fn.cjs +54 -0
- package/dist/generator_fn.js +2 -54
- package/dist/index.cjs +107 -0
- package/dist/index.js +6 -107
- package/dist/type.cjs +18 -0
- package/dist/type.js +0 -18
- package/dist/{type.d.ts → types/type.d.ts} +10 -1
- package/dist/types/utils/airline.d.ts +31 -0
- package/dist/{utils → types/utils}/animal.d.ts +2 -0
- package/dist/types/utils/book.d.ts +12 -0
- package/dist/{utils → types/utils}/color.d.ts +9 -9
- package/dist/{utils → types/utils}/finance.d.ts +7 -9
- package/dist/{utils → types/utils}/image.d.ts +0 -11
- package/dist/{utils → types/utils}/index.d.ts +2 -0
- package/dist/{utils → types/utils}/internet.d.ts +9 -7
- package/dist/{utils → types/utils}/location.d.ts +29 -16
- package/dist/{utils → types/utils}/number.d.ts +5 -0
- package/dist/{utils → types/utils}/person.d.ts +1 -1
- package/dist/{utils → types/utils}/science.d.ts +2 -2
- package/dist/{utils → types/utils}/string.d.ts +4 -0
- package/dist/utils/airline.cjs +62 -0
- package/dist/utils/airline.js +10 -46
- package/dist/utils/animal.cjs +98 -0
- package/dist/utils/animal.js +19 -94
- package/dist/utils/book.cjs +58 -0
- package/dist/utils/book.js +9 -0
- package/dist/utils/color.cjs +78 -0
- package/dist/utils/color.js +14 -78
- package/dist/utils/commerce.cjs +66 -0
- package/dist/utils/commerce.js +11 -66
- package/dist/utils/common.cjs +37 -0
- package/dist/utils/common.js +3 -37
- package/dist/utils/company.cjs +70 -0
- package/dist/utils/company.js +12 -70
- package/dist/utils/database.cjs +54 -0
- package/dist/utils/database.js +8 -54
- package/dist/utils/datatype.cjs +38 -0
- package/dist/utils/datatype.js +4 -38
- package/dist/utils/datetime.cjs +78 -0
- package/dist/utils/datetime.js +14 -78
- package/dist/utils/finance.cjs +114 -0
- package/dist/utils/finance.js +23 -110
- package/dist/utils/food.cjs +70 -0
- package/dist/utils/food.js +12 -70
- package/dist/utils/git.cjs +54 -0
- package/dist/utils/git.js +8 -54
- package/dist/utils/hacker.cjs +58 -0
- package/dist/utils/hacker.js +9 -58
- package/dist/utils/image.cjs +58 -0
- package/dist/utils/image.js +9 -66
- package/dist/utils/index.cjs +143 -0
- package/dist/utils/index.js +29 -136
- package/dist/utils/internet.cjs +118 -0
- package/dist/utils/internet.js +24 -114
- package/dist/utils/location.cjs +110 -0
- package/dist/utils/location.js +22 -98
- package/dist/utils/lorem.cjs +70 -0
- package/dist/utils/lorem.js +12 -70
- package/dist/utils/music.cjs +50 -0
- package/dist/utils/music.js +7 -50
- package/dist/utils/number.cjs +62 -0
- package/dist/utils/number.js +10 -58
- package/dist/utils/person.cjs +94 -0
- package/dist/utils/person.js +18 -94
- package/dist/utils/phone.cjs +42 -0
- package/dist/utils/phone.js +5 -42
- package/dist/utils/science.cjs +42 -0
- package/dist/utils/science.js +5 -42
- package/dist/utils/string.cjs +78 -0
- package/dist/utils/string.js +14 -74
- package/dist/utils/system.cjs +82 -0
- package/dist/utils/system.js +15 -82
- package/dist/utils/utils.cjs +39 -0
- package/dist/utils/utils.js +3 -37
- package/dist/utils/vehicle.cjs +70 -0
- package/dist/utils/vehicle.js +12 -70
- package/dist/utils/word.cjs +70 -0
- package/dist/utils/word.js +12 -70
- package/package.json +26 -36
- package/biome.json +0 -31
- package/dist/config.mjs +0 -2
- package/dist/config_scheme.mjs +0 -46
- package/dist/create_config.mjs +0 -61
- package/dist/generator_fn.mjs +0 -2
- package/dist/index.mjs +0 -6
- package/dist/type.mjs +0 -0
- package/dist/utils/airline.d.ts +0 -14
- package/dist/utils/airline.mjs +0 -6
- package/dist/utils/animal.mjs +0 -18
- package/dist/utils/color.mjs +0 -14
- package/dist/utils/commerce.mjs +0 -11
- package/dist/utils/common.mjs +0 -3
- package/dist/utils/company.mjs +0 -12
- package/dist/utils/database.mjs +0 -8
- package/dist/utils/datatype.mjs +0 -4
- package/dist/utils/datetime.mjs +0 -14
- package/dist/utils/finance.mjs +0 -22
- package/dist/utils/food.mjs +0 -12
- package/dist/utils/git.mjs +0 -8
- package/dist/utils/hacker.mjs +0 -9
- package/dist/utils/image.mjs +0 -11
- package/dist/utils/index.mjs +0 -27
- package/dist/utils/internet.mjs +0 -23
- package/dist/utils/location.mjs +0 -19
- package/dist/utils/lorem.mjs +0 -12
- package/dist/utils/music.mjs +0 -7
- package/dist/utils/number.mjs +0 -9
- package/dist/utils/person.mjs +0 -18
- package/dist/utils/phone.mjs +0 -5
- package/dist/utils/science.mjs +0 -5
- package/dist/utils/string.mjs +0 -13
- package/dist/utils/system.mjs +0 -15
- package/dist/utils/utils.mjs +0 -5
- package/dist/utils/vehicle.mjs +0 -12
- package/dist/utils/word.mjs +0 -12
- package/pnpm-workspace.yaml +0 -2
- package/rslib.config.ts +0 -26
- package/src/config.ts +0 -8
- package/src/config_scheme.ts +0 -41
- package/src/create_config.test.ts +0 -70
- package/src/create_config.ts +0 -170
- package/src/create_generator_fn.test.ts +0 -229
- package/src/create_generator_fn.ts +0 -342
- package/src/generator_fn.ts +0 -9
- package/src/index.ts +0 -5
- package/src/type.ts +0 -167
- package/src/utils/airline.ts +0 -11
- package/src/utils/animal.ts +0 -47
- package/src/utils/color.ts +0 -41
- package/src/utils/commerce.ts +0 -32
- package/src/utils/common.ts +0 -4
- package/src/utils/company.ts +0 -33
- package/src/utils/database.ts +0 -19
- package/src/utils/datatype.ts +0 -5
- package/src/utils/datetime.ts +0 -35
- package/src/utils/finance.ts +0 -65
- package/src/utils/food.ts +0 -29
- package/src/utils/git.ts +0 -17
- package/src/utils/hacker.ts +0 -20
- package/src/utils/image.ts +0 -26
- package/src/utils/index.ts +0 -26
- package/src/utils/internet.ts +0 -62
- package/src/utils/location.ts +0 -58
- package/src/utils/lorem.ts +0 -29
- package/src/utils/music.ts +0 -14
- package/src/utils/number.ts +0 -20
- package/src/utils/person.ts +0 -47
- package/src/utils/phone.ts +0 -8
- package/src/utils/science.ts +0 -8
- package/src/utils/string.ts +0 -32
- package/src/utils/system.ts +0 -40
- package/src/utils/utils.ts +0 -8
- package/src/utils/vehicle.ts +0 -29
- package/src/utils/word.ts +0 -29
- package/tsconfig.json +0 -18
- /package/dist/{config.d.ts → types/config.d.ts} +0 -0
- /package/dist/{config_scheme.d.ts → types/config_scheme.d.ts} +0 -0
- /package/dist/{create_config.d.ts → types/create_config.d.ts} +0 -0
- /package/dist/{create_config.test.d.ts → types/create_config.test.d.ts} +0 -0
- /package/dist/{create_generator_fn.d.ts → types/create_generator_fn.d.ts} +0 -0
- /package/dist/{create_generator_fn.test.d.ts → types/create_generator_fn.test.d.ts} +0 -0
- /package/dist/{generator_fn.d.ts → types/generator_fn.d.ts} +0 -0
- /package/dist/{index.d.ts → types/index.d.ts} +0 -0
- /package/dist/{utils → types/utils}/commerce.d.ts +0 -0
- /package/dist/{utils → types/utils}/common.d.ts +0 -0
- /package/dist/{utils → types/utils}/company.d.ts +0 -0
- /package/dist/{utils → types/utils}/database.d.ts +0 -0
- /package/dist/{utils → types/utils}/datatype.d.ts +0 -0
- /package/dist/{utils → types/utils}/datetime.d.ts +0 -0
- /package/dist/{utils → types/utils}/food.d.ts +0 -0
- /package/dist/{utils → types/utils}/git.d.ts +0 -0
- /package/dist/{utils → types/utils}/hacker.d.ts +0 -0
- /package/dist/{utils → types/utils}/lorem.d.ts +0 -0
- /package/dist/{utils → types/utils}/music.d.ts +0 -0
- /package/dist/{utils → types/utils}/phone.d.ts +0 -0
- /package/dist/{utils → types/utils}/system.d.ts +0 -0
- /package/dist/{utils → types/utils}/utils.d.ts +0 -0
- /package/dist/{utils → types/utils}/vehicle.d.ts +0 -0
- /package/dist/{utils → types/utils}/word.d.ts +0 -0
package/src/utils/database.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { faker } from "@faker-js/faker";
|
|
2
|
-
import { makeValueConfigFn } from "./utils";
|
|
3
|
-
|
|
4
|
-
/** Database [collation](https://fakerjs.dev/api/database.html#collation) */
|
|
5
|
-
export const collation = makeValueConfigFn(faker.database.collation);
|
|
6
|
-
|
|
7
|
-
/** Database [column](https://fakerjs.dev/api/database.html#column) */
|
|
8
|
-
export const column = makeValueConfigFn(faker.database.column);
|
|
9
|
-
|
|
10
|
-
/** Database [engine](https://fakerjs.dev/api/database.html#engine) */
|
|
11
|
-
export const engine = makeValueConfigFn(faker.database.engine);
|
|
12
|
-
|
|
13
|
-
/** Database [mongodbObjectId](https://fakerjs.dev/api/database.html#mongodbObjectId) */
|
|
14
|
-
export const mongodbObjectId = makeValueConfigFn(
|
|
15
|
-
faker.database.mongodbObjectId,
|
|
16
|
-
);
|
|
17
|
-
|
|
18
|
-
/** Database [type](https://fakerjs.dev/api/database.html#type) */
|
|
19
|
-
export const type = makeValueConfigFn(faker.database.type);
|
package/src/utils/datatype.ts
DELETED
package/src/utils/datetime.ts
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { faker } from "@faker-js/faker";
|
|
2
|
-
import { makeValueConfigFn } from "./utils";
|
|
3
|
-
|
|
4
|
-
/** Datetime [anytime](https://fakerjs.dev/api/date.html#anytime) */
|
|
5
|
-
export const anytime = makeValueConfigFn(faker.date.anytime);
|
|
6
|
-
|
|
7
|
-
/** Datetime [between](https://fakerjs.dev/api/date.html#between) */
|
|
8
|
-
export const between = makeValueConfigFn(faker.date.between);
|
|
9
|
-
|
|
10
|
-
/** Datetime [betweens](https://fakerjs.dev/api/date.html#betweens) */
|
|
11
|
-
export const betweens = makeValueConfigFn(faker.date.betweens);
|
|
12
|
-
|
|
13
|
-
/** Datetime [birthdate](https://fakerjs.dev/api/date.html#birthdate) */
|
|
14
|
-
export const birthdate = makeValueConfigFn(faker.date.birthdate);
|
|
15
|
-
|
|
16
|
-
/** Datetime [future](https://fakerjs.dev/api/date.html#future) */
|
|
17
|
-
export const future = makeValueConfigFn(faker.date.future);
|
|
18
|
-
|
|
19
|
-
/** Datetime [month](https://fakerjs.dev/api/date.html#month) */
|
|
20
|
-
export const month = makeValueConfigFn(faker.date.month);
|
|
21
|
-
|
|
22
|
-
/** Datetime [past](https://fakerjs.dev/api/date.html#past) */
|
|
23
|
-
export const past = makeValueConfigFn(faker.date.past);
|
|
24
|
-
|
|
25
|
-
/** Datetime [recent](https://fakerjs.dev/api/date.html#recent) */
|
|
26
|
-
export const recent = makeValueConfigFn(faker.date.recent);
|
|
27
|
-
|
|
28
|
-
/** Datetime [soon](https://fakerjs.dev/api/date.html#soon) */
|
|
29
|
-
export const soon = makeValueConfigFn(faker.date.soon);
|
|
30
|
-
|
|
31
|
-
/** Datetime [timeZone](https://fakerjs.dev/api/date.html#timeZone) */
|
|
32
|
-
export const timeZone = makeValueConfigFn(faker.date.timeZone);
|
|
33
|
-
|
|
34
|
-
/** Datetime [weekday](https://fakerjs.dev/api/date.html#weekday) */
|
|
35
|
-
export const weekday = makeValueConfigFn(faker.date.weekday);
|
package/src/utils/finance.ts
DELETED
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import { faker } from "@faker-js/faker";
|
|
2
|
-
import { makeValueConfigFn } from "./utils";
|
|
3
|
-
|
|
4
|
-
/** Finance [accountName](https://fakerjs.dev/api/finance.html#accountName) */
|
|
5
|
-
export const accountName = makeValueConfigFn(faker.finance.accountName);
|
|
6
|
-
|
|
7
|
-
/** Finance [accountNumber](https://fakerjs.dev/api/finance.html#accountNumber) */
|
|
8
|
-
export const accountNumber = makeValueConfigFn(faker.finance.accountNumber);
|
|
9
|
-
|
|
10
|
-
/** Finance [amount](https://fakerjs.dev/api/finance.html#amount) */
|
|
11
|
-
export const amount = makeValueConfigFn(faker.finance.amount);
|
|
12
|
-
|
|
13
|
-
/** Finance [bic](https://fakerjs.dev/api/finance.html#bic) */
|
|
14
|
-
export const bic = makeValueConfigFn(faker.finance.bic);
|
|
15
|
-
|
|
16
|
-
/** Finance [bitcoinAddress](https://fakerjs.dev/api/finance.html#bitcoinAddress) */
|
|
17
|
-
export const bitcoinAddress = makeValueConfigFn(faker.finance.bitcoinAddress);
|
|
18
|
-
|
|
19
|
-
/** Finance [creditCardCVV](https://fakerjs.dev/api/finance.html#creditCardCVV) */
|
|
20
|
-
export const creditCardCVV = makeValueConfigFn(faker.finance.creditCardCVV);
|
|
21
|
-
|
|
22
|
-
/** Finance [creditCardIssuer](https://fakerjs.dev/api/finance.html#creditCardIssuer) */
|
|
23
|
-
export const creditCardIssuer = makeValueConfigFn(
|
|
24
|
-
faker.finance.creditCardIssuer,
|
|
25
|
-
);
|
|
26
|
-
|
|
27
|
-
/** Finance [creditCardNumber](https://fakerjs.dev/api/finance.html#creditCardNumber) */
|
|
28
|
-
export const creditCardNumber = makeValueConfigFn(
|
|
29
|
-
faker.finance.creditCardNumber,
|
|
30
|
-
);
|
|
31
|
-
|
|
32
|
-
/** Finance [currency](https://fakerjs.dev/api/finance.html#currency) */
|
|
33
|
-
export const currency = makeValueConfigFn(faker.finance.currency);
|
|
34
|
-
|
|
35
|
-
/** Finance [currencyCode](https://fakerjs.dev/api/finance.html#currencyCode) */
|
|
36
|
-
export const currencyCode = makeValueConfigFn(faker.finance.currencyCode);
|
|
37
|
-
|
|
38
|
-
/** Finance [currencySymbol](https://fakerjs.dev/api/finance.html#currencySymbol) */
|
|
39
|
-
export const currencySymbol = makeValueConfigFn(faker.finance.currencySymbol);
|
|
40
|
-
|
|
41
|
-
/** Finance [ethereumAddress](https://fakerjs.dev/api/finance.html#ethereumAddress) */
|
|
42
|
-
export const ethereumAddress = makeValueConfigFn(faker.finance.ethereumAddress);
|
|
43
|
-
|
|
44
|
-
/** Finance [iban](https://fakerjs.dev/api/finance.html#iban) */
|
|
45
|
-
export const iban = makeValueConfigFn(faker.finance.iban);
|
|
46
|
-
|
|
47
|
-
/** Finance [litecoinAddress](https://fakerjs.dev/api/finance.html#litecoinAddress) */
|
|
48
|
-
export const litecoinAddress = makeValueConfigFn(faker.finance.litecoinAddress);
|
|
49
|
-
|
|
50
|
-
/** Finance [maskedNumber](https://fakerjs.dev/api/finance.html#maskedNumber) */
|
|
51
|
-
export const maskedNumber = makeValueConfigFn(faker.finance.maskedNumber);
|
|
52
|
-
|
|
53
|
-
/** Finance [pin](https://fakerjs.dev/api/finance.html#pin) */
|
|
54
|
-
export const pin = makeValueConfigFn(faker.finance.pin);
|
|
55
|
-
|
|
56
|
-
/** Finance [routingNumber](https://fakerjs.dev/api/finance.html#routingNumber) */
|
|
57
|
-
export const routingNumber = makeValueConfigFn(faker.finance.routingNumber);
|
|
58
|
-
|
|
59
|
-
/** Finance [transactionDescription](https://fakerjs.dev/api/finance.html#transactionDescription) */
|
|
60
|
-
export const transactionDescription = makeValueConfigFn(
|
|
61
|
-
faker.finance.transactionDescription,
|
|
62
|
-
);
|
|
63
|
-
|
|
64
|
-
/** Finance [transactionType](https://fakerjs.dev/api/finance.html#transactionType) */
|
|
65
|
-
export const transactionType = makeValueConfigFn(faker.finance.transactionType);
|
package/src/utils/food.ts
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { faker } from "@faker-js/faker";
|
|
2
|
-
import { makeValueConfigFn } from "./utils";
|
|
3
|
-
|
|
4
|
-
/** Food [adjective](https://fakerjs.dev/api/food.html#adjective) */
|
|
5
|
-
export const adjective = makeValueConfigFn(faker.food.adjective);
|
|
6
|
-
|
|
7
|
-
/** Food [description](https://fakerjs.dev/api/food.html#description) */
|
|
8
|
-
export const description = makeValueConfigFn(faker.food.description);
|
|
9
|
-
|
|
10
|
-
/** Food [dish](https://fakerjs.dev/api/food.html#dish) */
|
|
11
|
-
export const dish = makeValueConfigFn(faker.food.dish);
|
|
12
|
-
|
|
13
|
-
/** Food [ethnicCategory](https://fakerjs.dev/api/food.html#ethnicCategory) */
|
|
14
|
-
export const ethnicCategory = makeValueConfigFn(faker.food.ethnicCategory);
|
|
15
|
-
|
|
16
|
-
/** Food [fruit](https://fakerjs.dev/api/food.html#fruit) */
|
|
17
|
-
export const fruit = makeValueConfigFn(faker.food.fruit);
|
|
18
|
-
|
|
19
|
-
/** Food [ingredient](https://fakerjs.dev/api/food.html#ingredient) */
|
|
20
|
-
export const ingredient = makeValueConfigFn(faker.food.ingredient);
|
|
21
|
-
|
|
22
|
-
/** Food [meat](https://fakerjs.dev/api/food.html#meat) */
|
|
23
|
-
export const meat = makeValueConfigFn(faker.food.meat);
|
|
24
|
-
|
|
25
|
-
/** Food [spice](https://fakerjs.dev/api/food.html#spice) */
|
|
26
|
-
export const spice = makeValueConfigFn(faker.food.spice);
|
|
27
|
-
|
|
28
|
-
/** Food [vegetable](https://fakerjs.dev/api/food.html#vegetable) */
|
|
29
|
-
export const vegetable = makeValueConfigFn(faker.food.vegetable);
|
package/src/utils/git.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { faker } from "@faker-js/faker";
|
|
2
|
-
import { makeValueConfigFn } from "./utils";
|
|
3
|
-
|
|
4
|
-
/** Git [branch](https://fakerjs.dev/api/git.html#branch) */
|
|
5
|
-
export const branch = makeValueConfigFn(faker.git.branch);
|
|
6
|
-
|
|
7
|
-
/** Git [commitDate](https://fakerjs.dev/api/git.html#commitDate) */
|
|
8
|
-
export const commitDate = makeValueConfigFn(faker.git.commitDate);
|
|
9
|
-
|
|
10
|
-
/** Git [commitEntry](https://fakerjs.dev/api/git.html#commitEntry) */
|
|
11
|
-
export const commitEntry = makeValueConfigFn(faker.git.commitEntry);
|
|
12
|
-
|
|
13
|
-
/** Git [commitMessage](https://fakerjs.dev/api/git.html#commitMessage) */
|
|
14
|
-
export const commitMessage = makeValueConfigFn(faker.git.commitMessage);
|
|
15
|
-
|
|
16
|
-
/** Git [commitSha](https://fakerjs.dev/api/git.html#commitSha) */
|
|
17
|
-
export const commitSha = makeValueConfigFn(faker.git.commitSha);
|
package/src/utils/hacker.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { faker } from "@faker-js/faker";
|
|
2
|
-
import { makeValueConfigFn } from "./utils";
|
|
3
|
-
|
|
4
|
-
/** Hacker [abbreviation](https://fakerjs.dev/api/hacker.html#abbreviation) */
|
|
5
|
-
export const abbreviation = makeValueConfigFn(faker.hacker.abbreviation);
|
|
6
|
-
|
|
7
|
-
/** Hacker [adjective](https://fakerjs.dev/api/hacker.html#adjective) */
|
|
8
|
-
export const adjective = makeValueConfigFn(faker.hacker.adjective);
|
|
9
|
-
|
|
10
|
-
/** Hacker [ingverb](https://fakerjs.dev/api/hacker.html#ingverb) */
|
|
11
|
-
export const ingverb = makeValueConfigFn(faker.hacker.ingverb);
|
|
12
|
-
|
|
13
|
-
/** Hacker [noun](https://fakerjs.dev/api/hacker.html#noun) */
|
|
14
|
-
export const noun = makeValueConfigFn(faker.hacker.noun);
|
|
15
|
-
|
|
16
|
-
/** Hacker [phrase](https://fakerjs.dev/api/hacker.html#phrase) */
|
|
17
|
-
export const phrase = makeValueConfigFn(faker.hacker.phrase);
|
|
18
|
-
|
|
19
|
-
/** Hacker [verb](https://fakerjs.dev/api/hacker.html#verb) */
|
|
20
|
-
export const verb = makeValueConfigFn(faker.hacker.verb);
|
package/src/utils/image.ts
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { faker } from "@faker-js/faker";
|
|
2
|
-
import { makeValueConfigFn } from "./utils";
|
|
3
|
-
|
|
4
|
-
/** Image [avatar](https://fakerjs.dev/api/image.html#avatar) */
|
|
5
|
-
export const avatar = makeValueConfigFn(faker.image.avatar);
|
|
6
|
-
|
|
7
|
-
/** Image [avatarGitHub](https://fakerjs.dev/api/image.html#avatarGitHub) */
|
|
8
|
-
export const avatarGitHub = makeValueConfigFn(faker.image.avatarGitHub);
|
|
9
|
-
|
|
10
|
-
/** Image [avatarLegacy](https://fakerjs.dev/api/image.html#avatarLegacy) */
|
|
11
|
-
export const avatarLegacy = makeValueConfigFn(faker.image.avatarLegacy);
|
|
12
|
-
|
|
13
|
-
/** Image [dataUri](https://fakerjs.dev/api/image.html#dataUri) */
|
|
14
|
-
export const dataUri = makeValueConfigFn(faker.image.dataUri);
|
|
15
|
-
|
|
16
|
-
/** Image [url](https://fakerjs.dev/api/image.html#url) */
|
|
17
|
-
export const url = makeValueConfigFn(faker.image.url);
|
|
18
|
-
|
|
19
|
-
/** Image [urlLoremFlickr](https://fakerjs.dev/api/image.html#urlLoremFlickr) */
|
|
20
|
-
export const urlLoremFlickr = makeValueConfigFn(faker.image.urlLoremFlickr);
|
|
21
|
-
|
|
22
|
-
/** Image [urlPicsumPhotos](https://fakerjs.dev/api/image.html#urlPicsumPhotos) */
|
|
23
|
-
export const urlPicsumPhotos = makeValueConfigFn(faker.image.urlPicsumPhotos);
|
|
24
|
-
|
|
25
|
-
/** Image [urlPlaceholder](https://fakerjs.dev/api/image.html#urlPlaceholder) */
|
|
26
|
-
export const urlPlaceholder = makeValueConfigFn(faker.image.urlPlaceholder);
|
package/src/utils/index.ts
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
export * as Airline from "./airline";
|
|
2
|
-
export * as Animal from "./animal";
|
|
3
|
-
export * as Color from "./color";
|
|
4
|
-
export * as Commerce from "./commerce";
|
|
5
|
-
export * as Common from "./common";
|
|
6
|
-
export * as Company from "./company";
|
|
7
|
-
export * as Database from "./database";
|
|
8
|
-
export * as Datatype from "./datatype";
|
|
9
|
-
export * as DateTime from "./datetime";
|
|
10
|
-
export * as Finance from "./finance";
|
|
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";
|
|
17
|
-
export * as Lorem from "./lorem";
|
|
18
|
-
export * as Music from "./music";
|
|
19
|
-
export * as Number from "./number";
|
|
20
|
-
export * as Person from "./person";
|
|
21
|
-
export * as Phone from "./phone";
|
|
22
|
-
export * as Science from "./science";
|
|
23
|
-
export * as String from "./string";
|
|
24
|
-
export * as System from "./system";
|
|
25
|
-
export * as utils from "./utils";
|
|
26
|
-
export * as Vehicle from "./vehicle";
|
package/src/utils/internet.ts
DELETED
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import { faker } from "@faker-js/faker";
|
|
2
|
-
import { makeValueConfigFn } from "./utils";
|
|
3
|
-
|
|
4
|
-
/** Internet [color](https://fakerjs.dev/api/internet.html#color) */
|
|
5
|
-
export const color = makeValueConfigFn(faker.internet.color);
|
|
6
|
-
|
|
7
|
-
/** Internet [displayName](https://fakerjs.dev/api/internet.html#displayName) */
|
|
8
|
-
export const displayName = makeValueConfigFn(faker.internet.displayName);
|
|
9
|
-
|
|
10
|
-
/** Internet [domainName](https://fakerjs.dev/api/internet.html#domainName) */
|
|
11
|
-
export const domainName = makeValueConfigFn(faker.internet.domainName);
|
|
12
|
-
|
|
13
|
-
/** Internet [domainSuffix](https://fakerjs.dev/api/internet.html#domainSuffix) */
|
|
14
|
-
export const domainSuffix = makeValueConfigFn(faker.internet.domainSuffix);
|
|
15
|
-
|
|
16
|
-
/** Internet [domainWord](https://fakerjs.dev/api/internet.html#domainWord) */
|
|
17
|
-
export const domainWord = makeValueConfigFn(faker.internet.domainWord);
|
|
18
|
-
|
|
19
|
-
/** Internet [email](https://fakerjs.dev/api/internet.html#email) */
|
|
20
|
-
export const email = makeValueConfigFn(faker.internet.email);
|
|
21
|
-
|
|
22
|
-
/** Internet [emoji](https://fakerjs.dev/api/internet.html#emoji) */
|
|
23
|
-
export const emoji = makeValueConfigFn(faker.internet.emoji);
|
|
24
|
-
|
|
25
|
-
/** Internet [exampleEmail](https://fakerjs.dev/api/internet.html#exampleEmail) */
|
|
26
|
-
export const exampleEmail = makeValueConfigFn(faker.internet.exampleEmail);
|
|
27
|
-
|
|
28
|
-
/** Internet [httpMethod](https://fakerjs.dev/api/internet.html#httpMethod) */
|
|
29
|
-
export const httpMethod = makeValueConfigFn(faker.internet.httpMethod);
|
|
30
|
-
|
|
31
|
-
/** Internet [httpStatusCode](https://fakerjs.dev/api/internet.html#httpStatusCode) */
|
|
32
|
-
export const httpStatusCode = makeValueConfigFn(faker.internet.httpStatusCode);
|
|
33
|
-
|
|
34
|
-
/** Internet [ip](https://fakerjs.dev/api/internet.html#ip) */
|
|
35
|
-
export const ip = makeValueConfigFn(faker.internet.ip);
|
|
36
|
-
|
|
37
|
-
/** Internet [ipv4](https://fakerjs.dev/api/internet.html#ipv4) */
|
|
38
|
-
export const ipv4 = makeValueConfigFn(faker.internet.ipv4);
|
|
39
|
-
|
|
40
|
-
/** Internet [ipv6](https://fakerjs.dev/api/internet.html#ipv6) */
|
|
41
|
-
export const ipv6 = makeValueConfigFn(faker.internet.ipv6);
|
|
42
|
-
|
|
43
|
-
/** Internet [mac](https://fakerjs.dev/api/internet.html#mac) */
|
|
44
|
-
export const mac = makeValueConfigFn(faker.internet.mac);
|
|
45
|
-
|
|
46
|
-
/** Internet [password](https://fakerjs.dev/api/internet.html#password) */
|
|
47
|
-
export const password = makeValueConfigFn(faker.internet.password);
|
|
48
|
-
|
|
49
|
-
/** Internet [port](https://fakerjs.dev/api/internet.html#port) */
|
|
50
|
-
export const port = makeValueConfigFn(faker.internet.port);
|
|
51
|
-
|
|
52
|
-
/** Internet [protocol](https://fakerjs.dev/api/internet.html#protocol) */
|
|
53
|
-
export const protocol = makeValueConfigFn(faker.internet.protocol);
|
|
54
|
-
|
|
55
|
-
/** Internet [url](https://fakerjs.dev/api/internet.html#url) */
|
|
56
|
-
export const url = makeValueConfigFn(faker.internet.url);
|
|
57
|
-
|
|
58
|
-
/** Internet [userAgent](https://fakerjs.dev/api/internet.html#userAgent) */
|
|
59
|
-
export const userAgent = makeValueConfigFn(faker.internet.userAgent);
|
|
60
|
-
|
|
61
|
-
/** Internet [userName](https://fakerjs.dev/api/internet.html#userName) */
|
|
62
|
-
export const username = makeValueConfigFn(faker.internet.username);
|
package/src/utils/location.ts
DELETED
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { faker } from "@faker-js/faker";
|
|
2
|
-
import { makeValueConfigFn } from "./utils";
|
|
3
|
-
|
|
4
|
-
/** Location [buildingNumber](https://fakerjs.dev/api/location.html#buildingNumber) */
|
|
5
|
-
export const buildingNumber = makeValueConfigFn(faker.location.buildingNumber);
|
|
6
|
-
|
|
7
|
-
/** Location [cardinalDirection](https://fakerjs.dev/api/location.html#cardinalDirection) */
|
|
8
|
-
export const cardinalDirection = makeValueConfigFn(
|
|
9
|
-
faker.location.cardinalDirection,
|
|
10
|
-
);
|
|
11
|
-
|
|
12
|
-
/** Location [city](https://fakerjs.dev/api/location.html#city) */
|
|
13
|
-
export const city = makeValueConfigFn(faker.location.city);
|
|
14
|
-
|
|
15
|
-
/** Location [country](https://fakerjs.dev/api/location.html#country) */
|
|
16
|
-
export const country = makeValueConfigFn(faker.location.country);
|
|
17
|
-
|
|
18
|
-
/** Location [countryCode](https://fakerjs.dev/api/location.html#countryCode) */
|
|
19
|
-
export const countryCode = makeValueConfigFn(faker.location.countryCode);
|
|
20
|
-
|
|
21
|
-
/** Location [county](https://fakerjs.dev/api/location.html#county) */
|
|
22
|
-
export const county = makeValueConfigFn(faker.location.county);
|
|
23
|
-
|
|
24
|
-
/** Location [direction](https://fakerjs.dev/api/location.html#direction) */
|
|
25
|
-
export const direction = makeValueConfigFn(faker.location.direction);
|
|
26
|
-
|
|
27
|
-
/** Location [latitude](https://fakerjs.dev/api/location.html#latitude) */
|
|
28
|
-
export const latitude = makeValueConfigFn(faker.location.latitude);
|
|
29
|
-
|
|
30
|
-
/** Location [longitude](https://fakerjs.dev/api/location.html#longitude) */
|
|
31
|
-
export const longitude = makeValueConfigFn(faker.location.longitude);
|
|
32
|
-
|
|
33
|
-
/** Location [nearbyGPSCoordinate](https://fakerjs.dev/api/location.html#nearbyGPSCoordinate) */
|
|
34
|
-
export const nearbyGPSCoordinate = makeValueConfigFn(
|
|
35
|
-
faker.location.nearbyGPSCoordinate,
|
|
36
|
-
);
|
|
37
|
-
|
|
38
|
-
/** Location [ordinalDirection](https://fakerjs.dev/api/location.html#ordinalDirection) */
|
|
39
|
-
export const ordinalDirection = makeValueConfigFn(
|
|
40
|
-
faker.location.ordinalDirection,
|
|
41
|
-
);
|
|
42
|
-
|
|
43
|
-
/** Location [secondaryAddress](https://fakerjs.dev/api/location.html#secondaryAddress) */
|
|
44
|
-
export const secondaryAddress = makeValueConfigFn(
|
|
45
|
-
faker.location.secondaryAddress,
|
|
46
|
-
);
|
|
47
|
-
|
|
48
|
-
/** Location [state](https://fakerjs.dev/api/location.html#state) */
|
|
49
|
-
export const state = makeValueConfigFn(faker.location.state);
|
|
50
|
-
|
|
51
|
-
/** Location [street](https://fakerjs.dev/api/location.html#street) */
|
|
52
|
-
export const street = makeValueConfigFn(faker.location.street);
|
|
53
|
-
|
|
54
|
-
/** Location [streetAddress](https://fakerjs.dev/api/location.html#streetAddress) */
|
|
55
|
-
export const streetAddress = makeValueConfigFn(faker.location.streetAddress);
|
|
56
|
-
|
|
57
|
-
/** Location [timeZone](https://fakerjs.dev/api/location.html#timeZone) */
|
|
58
|
-
export const timeZone = makeValueConfigFn(faker.location.timeZone);
|
package/src/utils/lorem.ts
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { faker } from "@faker-js/faker";
|
|
2
|
-
import { makeValueConfigFn } from "./utils";
|
|
3
|
-
|
|
4
|
-
/** Lorem [lines](https://fakerjs.dev/api/lorem.html#lines) */
|
|
5
|
-
export const lines = makeValueConfigFn(faker.lorem.lines);
|
|
6
|
-
|
|
7
|
-
/** Lorem [paragraph](https://fakerjs.dev/api/lorem.html#paragraph) */
|
|
8
|
-
export const paragraph = makeValueConfigFn(faker.lorem.paragraph);
|
|
9
|
-
|
|
10
|
-
/** Lorem [paragraphs](https://fakerjs.dev/api/lorem.html#paragraphs) */
|
|
11
|
-
export const paragraphs = makeValueConfigFn(faker.lorem.paragraphs);
|
|
12
|
-
|
|
13
|
-
/** Lorem [sentence](https://fakerjs.dev/api/lorem.html#sentence) */
|
|
14
|
-
export const sentence = makeValueConfigFn(faker.lorem.sentence);
|
|
15
|
-
|
|
16
|
-
/** Lorem [sentences](https://fakerjs.dev/api/lorem.html#sentences) */
|
|
17
|
-
export const sentences = makeValueConfigFn(faker.lorem.sentences);
|
|
18
|
-
|
|
19
|
-
/** Lorem [slug](https://fakerjs.dev/api/lorem.html#slug) */
|
|
20
|
-
export const slug = makeValueConfigFn(faker.lorem.slug);
|
|
21
|
-
|
|
22
|
-
/** Lorem [text](https://fakerjs.dev/api/lorem.html#text) */
|
|
23
|
-
export const text = makeValueConfigFn(faker.lorem.text);
|
|
24
|
-
|
|
25
|
-
/** Lorem [word](https://fakerjs.dev/api/lorem.html#word) */
|
|
26
|
-
export const word = makeValueConfigFn(faker.lorem.word);
|
|
27
|
-
|
|
28
|
-
/** Lorem [words](https://fakerjs.dev/api/lorem.html#words) */
|
|
29
|
-
export const words = makeValueConfigFn(faker.lorem.words);
|
package/src/utils/music.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { faker } from "@faker-js/faker";
|
|
2
|
-
import { makeValueConfigFn } from "./utils";
|
|
3
|
-
|
|
4
|
-
/** Music [album](https://fakerjs.dev/api/music.html#album) */
|
|
5
|
-
export const album = makeValueConfigFn(faker.music.album);
|
|
6
|
-
|
|
7
|
-
/** Music [artist](https://fakerjs.dev/api/music.html#artist) */
|
|
8
|
-
export const artist = makeValueConfigFn(faker.music.artist);
|
|
9
|
-
|
|
10
|
-
/** Music [genre](https://fakerjs.dev/api/music.html#genre) */
|
|
11
|
-
export const genre = makeValueConfigFn(faker.music.genre);
|
|
12
|
-
|
|
13
|
-
/** Music [songName](https://fakerjs.dev/api/music.html#songName) */
|
|
14
|
-
export const songName = makeValueConfigFn(faker.music.songName);
|
package/src/utils/number.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { faker } from "@faker-js/faker";
|
|
2
|
-
import { makeValueConfigFn } from "./utils";
|
|
3
|
-
|
|
4
|
-
/** Number [bigInt](https://fakerjs.dev/api/number.html#bigInt) */
|
|
5
|
-
export const bigInt = makeValueConfigFn(faker.number.bigInt);
|
|
6
|
-
|
|
7
|
-
/** Number [binary](https://fakerjs.dev/api/number.html#binary) */
|
|
8
|
-
export const binary = makeValueConfigFn(faker.number.binary);
|
|
9
|
-
|
|
10
|
-
/** Number [float](https://fakerjs.dev/api/number.html#float) */
|
|
11
|
-
export const float = makeValueConfigFn(faker.number.float);
|
|
12
|
-
|
|
13
|
-
/** Number [hex](https://fakerjs.dev/api/number.html#hex) */
|
|
14
|
-
export const hex = makeValueConfigFn(faker.number.hex);
|
|
15
|
-
|
|
16
|
-
/** Number [int](https://fakerjs.dev/api/number.html#int) */
|
|
17
|
-
export const int = makeValueConfigFn(faker.number.int);
|
|
18
|
-
|
|
19
|
-
/** Number [octal](https://fakerjs.dev/api/number.html#octal) */
|
|
20
|
-
export const octal = makeValueConfigFn(faker.number.octal);
|
package/src/utils/person.ts
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { faker } from "@faker-js/faker";
|
|
2
|
-
import { makeValueConfigFn } from "./utils";
|
|
3
|
-
|
|
4
|
-
/** Person [bio](https://fakerjs.dev/api/person.html#bio) */
|
|
5
|
-
export const bio = makeValueConfigFn(faker.person.bio);
|
|
6
|
-
|
|
7
|
-
/** Person [firstName](https://fakerjs.dev/api/person.html#firstName) */
|
|
8
|
-
export const firstName = makeValueConfigFn(faker.person.firstName);
|
|
9
|
-
|
|
10
|
-
/** Person [fullName](https://fakerjs.dev/api/person.html#fullName) */
|
|
11
|
-
export const fullName = makeValueConfigFn(faker.person.fullName);
|
|
12
|
-
|
|
13
|
-
/** Person [gender](https://fakerjs.dev/api/person.html#gender) */
|
|
14
|
-
export const gender = makeValueConfigFn(faker.person.gender);
|
|
15
|
-
|
|
16
|
-
/** Person [jobArea](https://fakerjs.dev/api/person.html#jobArea) */
|
|
17
|
-
export const jobArea = makeValueConfigFn(faker.person.jobArea);
|
|
18
|
-
|
|
19
|
-
/** Person [jobDescriptor](https://fakerjs.dev/api/person.html#jobDescriptor) */
|
|
20
|
-
export const jobDescriptor = makeValueConfigFn(faker.person.jobDescriptor);
|
|
21
|
-
|
|
22
|
-
/** Person [jobTitle](https://fakerjs.dev/api/person.html#jobTitle) */
|
|
23
|
-
export const jobTitle = makeValueConfigFn(faker.person.jobTitle);
|
|
24
|
-
|
|
25
|
-
/** Person [jobType](https://fakerjs.dev/api/person.html#jobType) */
|
|
26
|
-
export const jobType = makeValueConfigFn(faker.person.jobType);
|
|
27
|
-
|
|
28
|
-
/** Person [lastName](https://fakerjs.dev/api/person.html#lastName) */
|
|
29
|
-
export const lastName = makeValueConfigFn(faker.person.lastName);
|
|
30
|
-
|
|
31
|
-
/** Person [middleName](https://fakerjs.dev/api/person.html#middleName) */
|
|
32
|
-
export const middleName = makeValueConfigFn(faker.person.middleName);
|
|
33
|
-
|
|
34
|
-
/** Person [prefix](https://fakerjs.dev/api/person.html#prefix) */
|
|
35
|
-
export const prefix = makeValueConfigFn(faker.person.prefix);
|
|
36
|
-
|
|
37
|
-
/** Person [sex](https://fakerjs.dev/api/person.html#sex) */
|
|
38
|
-
export const sex = makeValueConfigFn(faker.person.sex);
|
|
39
|
-
|
|
40
|
-
/** Person [sexType](https://fakerjs.dev/api/person.html#sexType) */
|
|
41
|
-
export const sexType = makeValueConfigFn(faker.person.sexType);
|
|
42
|
-
|
|
43
|
-
/** Person [suffix](https://fakerjs.dev/api/person.html#suffix) */
|
|
44
|
-
export const suffix = makeValueConfigFn(faker.person.suffix);
|
|
45
|
-
|
|
46
|
-
/** Person [zodiacSign](https://fakerjs.dev/api/person.html#zodiacSign) */
|
|
47
|
-
export const zodiacSign = makeValueConfigFn(faker.person.zodiacSign);
|
package/src/utils/phone.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { faker } from "@faker-js/faker";
|
|
2
|
-
import { makeValueConfigFn } from "./utils";
|
|
3
|
-
|
|
4
|
-
/** Phone [imei](https://fakerjs.dev/api/phone.html#imei) */
|
|
5
|
-
export const imei = makeValueConfigFn(faker.phone.imei);
|
|
6
|
-
|
|
7
|
-
/** Phone [number](https://fakerjs.dev/api/phone.html#number) */
|
|
8
|
-
export const number = makeValueConfigFn(faker.phone.number);
|
package/src/utils/science.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { faker } from "@faker-js/faker";
|
|
2
|
-
import { makeValueConfigFn } from "./utils";
|
|
3
|
-
|
|
4
|
-
/** Science [chemicalElement](https://fakerjs.dev/api/science.html#chemicalElement) */
|
|
5
|
-
export const chemicalElement = makeValueConfigFn(faker.science.chemicalElement);
|
|
6
|
-
|
|
7
|
-
/** Science [unit](https://fakerjs.dev/api/science.html#unit) */
|
|
8
|
-
export const unit = makeValueConfigFn(faker.science.unit);
|
package/src/utils/string.ts
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { faker } from "@faker-js/faker";
|
|
2
|
-
import { makeValueConfigFn } from "./utils";
|
|
3
|
-
|
|
4
|
-
/** String [alpha](https://fakerjs.dev/api/string.html#alpha) */
|
|
5
|
-
export const alpha = makeValueConfigFn(faker.string.alpha);
|
|
6
|
-
|
|
7
|
-
/** String [alphanumeric](https://fakerjs.dev/api/string.html#alphanumeric) */
|
|
8
|
-
export const alphanumeric = makeValueConfigFn(faker.string.alphanumeric);
|
|
9
|
-
|
|
10
|
-
/** String [binary](https://fakerjs.dev/api/string.html#binary) */
|
|
11
|
-
export const binary = makeValueConfigFn(faker.string.binary);
|
|
12
|
-
|
|
13
|
-
/** String [fromCharacters](https://fakerjs.dev/api/string.html#fromCharacters) */
|
|
14
|
-
export const fromCharacters = makeValueConfigFn(faker.string.fromCharacters);
|
|
15
|
-
|
|
16
|
-
/** String [hexadecimal](https://fakerjs.dev/api/string.html#hexadecimal) */
|
|
17
|
-
export const hexadecimal = makeValueConfigFn(faker.string.hexadecimal);
|
|
18
|
-
|
|
19
|
-
/** String [nanoid](https://fakerjs.dev/api/string.html#nanoid) */
|
|
20
|
-
export const nanoid = makeValueConfigFn(faker.string.nanoid);
|
|
21
|
-
|
|
22
|
-
/** String [octal](https://fakerjs.dev/api/string.html#octal) */
|
|
23
|
-
export const octal = makeValueConfigFn(faker.string.octal);
|
|
24
|
-
|
|
25
|
-
/** String [sample](https://fakerjs.dev/api/string.html#sample) */
|
|
26
|
-
export const sample = makeValueConfigFn(faker.string.sample);
|
|
27
|
-
|
|
28
|
-
/** String [symbol](https://fakerjs.dev/api/string.html#symbol) */
|
|
29
|
-
export const symbol = makeValueConfigFn(faker.string.symbol);
|
|
30
|
-
|
|
31
|
-
/** String [uuid](https://fakerjs.dev/api/string.html#uuid) */
|
|
32
|
-
export const uuid = makeValueConfigFn(faker.string.uuid);
|
package/src/utils/system.ts
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { faker } from "@faker-js/faker";
|
|
2
|
-
import { makeValueConfigFn } from "./utils";
|
|
3
|
-
|
|
4
|
-
/** System [commonFileExt](https://fakerjs.dev/api/system.html#commonFileExt) */
|
|
5
|
-
export const commonFileExt = makeValueConfigFn(faker.system.commonFileExt);
|
|
6
|
-
|
|
7
|
-
/** System [commonFileName](https://fakerjs.dev/api/system.html#commonFileName) */
|
|
8
|
-
export const commonFileName = makeValueConfigFn(faker.system.commonFileName);
|
|
9
|
-
|
|
10
|
-
/** System [commonFileType](https://fakerjs.dev/api/system.html#commonFileType) */
|
|
11
|
-
export const commonFileType = makeValueConfigFn(faker.system.commonFileType);
|
|
12
|
-
|
|
13
|
-
/** System [cron](https://fakerjs.dev/api/system.html#cron) */
|
|
14
|
-
export const cron = makeValueConfigFn(faker.system.cron);
|
|
15
|
-
|
|
16
|
-
/** System [directoryPath](https://fakerjs.dev/api/system.html#directoryPath) */
|
|
17
|
-
export const directoryPath = makeValueConfigFn(faker.system.directoryPath);
|
|
18
|
-
|
|
19
|
-
/** System [fileExt](https://fakerjs.dev/api/system.html#fileExt) */
|
|
20
|
-
export const fileExt = makeValueConfigFn(faker.system.fileExt);
|
|
21
|
-
|
|
22
|
-
/** System [fileName](https://fakerjs.dev/api/system.html#fileName) */
|
|
23
|
-
export const fileName = makeValueConfigFn(faker.system.fileName);
|
|
24
|
-
|
|
25
|
-
/** System [filePath](https://fakerjs.dev/api/system.html#filePath) */
|
|
26
|
-
export const filePath = makeValueConfigFn(faker.system.filePath);
|
|
27
|
-
|
|
28
|
-
/** System [fileType](https://fakerjs.dev/api/system.html#fileType) */
|
|
29
|
-
export const fileType = makeValueConfigFn(faker.system.fileType);
|
|
30
|
-
|
|
31
|
-
/** System [mimeType](https://fakerjs.dev/api/system.html#mimeType) */
|
|
32
|
-
export const mimeType = makeValueConfigFn(faker.system.mimeType);
|
|
33
|
-
|
|
34
|
-
/** System [networkInterface](https://fakerjs.dev/api/system.html#networkInterface) */
|
|
35
|
-
export const networkInterface = makeValueConfigFn(
|
|
36
|
-
faker.system.networkInterface,
|
|
37
|
-
);
|
|
38
|
-
|
|
39
|
-
/** System [semver](https://fakerjs.dev/api/system.html#semver) */
|
|
40
|
-
export const semver = makeValueConfigFn(faker.system.semver);
|
package/src/utils/utils.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { createValueConfig } from "../create_config";
|
|
2
|
-
import type { ValueConfig } from "../type";
|
|
3
|
-
|
|
4
|
-
export function makeValueConfigFn<Args extends Array<unknown>, R>(
|
|
5
|
-
fn: (...options: Args) => R,
|
|
6
|
-
): (...options: Args) => ValueConfig<R> {
|
|
7
|
-
return (...options) => createValueConfig(() => fn(...options));
|
|
8
|
-
}
|
package/src/utils/vehicle.ts
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { faker } from "@faker-js/faker";
|
|
2
|
-
import { makeValueConfigFn } from "./utils";
|
|
3
|
-
|
|
4
|
-
/** Vehicle [bicycle](https://fakerjs.dev/api/vehicle.html#bicycle) */
|
|
5
|
-
export const bicycle = makeValueConfigFn(faker.vehicle.bicycle);
|
|
6
|
-
|
|
7
|
-
/** Vehicle [color](https://fakerjs.dev/api/vehicle.html#color) */
|
|
8
|
-
export const color = makeValueConfigFn(faker.vehicle.color);
|
|
9
|
-
|
|
10
|
-
/** Vehicle [fuel](https://fakerjs.dev/api/vehicle.html#fuel) */
|
|
11
|
-
export const fuel = makeValueConfigFn(faker.vehicle.fuel);
|
|
12
|
-
|
|
13
|
-
/** Vehicle [manufacturer](https://fakerjs.dev/api/vehicle.html#manufacturer) */
|
|
14
|
-
export const manufacturer = makeValueConfigFn(faker.vehicle.manufacturer);
|
|
15
|
-
|
|
16
|
-
/** Vehicle [model](https://fakerjs.dev/api/vehicle.html#model) */
|
|
17
|
-
export const model = makeValueConfigFn(faker.vehicle.model);
|
|
18
|
-
|
|
19
|
-
/** Vehicle [type](https://fakerjs.dev/api/vehicle.html#type) */
|
|
20
|
-
export const type = makeValueConfigFn(faker.vehicle.type);
|
|
21
|
-
|
|
22
|
-
/** Vehicle [vehicle](https://fakerjs.dev/api/vehicle.html#vehicle) */
|
|
23
|
-
export const vehicle = makeValueConfigFn(faker.vehicle.vehicle);
|
|
24
|
-
|
|
25
|
-
/** Vehicle [vin](https://fakerjs.dev/api/vehicle.html#vin) */
|
|
26
|
-
export const vin = makeValueConfigFn(faker.vehicle.vin);
|
|
27
|
-
|
|
28
|
-
/** Vehicle [vrm](https://fakerjs.dev/api/vehicle.html#vrm) */
|
|
29
|
-
export const vrm = makeValueConfigFn(faker.vehicle.vrm);
|