blob: b4e8befd79afec78727c451eba0f70ba9f0f7d6d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
|
import { ModuleBase } from '../../internal/module-base';
/**
* Module to generate company related entries.
*
* ### Overview
*
* To generate a random company name, use [`name()`](https://fakerjs.dev/api/company.html#name). This is localized in many locales.
*
* To generate jargon-filled company catchphrases and buzzwords, use [`catchPhrase()`](https://fakerjs.dev/api/company.html#catchphrase) or [`buzzPhrase()`](https://fakerjs.dev/api/company.html#buzzphrase).
*
* ### Related Modules
*
* - For products and commerce, use [`faker.commerce`](https://fakerjs.dev/api/commerce.html).
* - For finance-related entries, use [`faker.finance`](https://fakerjs.dev/api/finance.html).
*/
export class CompanyModule extends ModuleBase {
/**
* Generates a random company name.
*
* @example
* faker.company.name() // 'Zieme, Hauck and McClure'
*
* @since 7.4.0
*/
name(): string {
return this.faker.helpers.fake(this.faker.definitions.company.name_pattern);
}
/**
* Generates a random catch phrase that can be displayed to an end user.
*
* @example
* faker.company.catchPhrase() // 'Upgradable systematic flexibility'
*
* @since 2.0.1
*/
catchPhrase(): string {
return [
this.catchPhraseAdjective(),
this.catchPhraseDescriptor(),
this.catchPhraseNoun(),
].join(' ');
}
/**
* Generates a random buzz phrase that can be used to demonstrate data being viewed by a manager.
*
* @example
* faker.company.buzzPhrase() // 'cultivate synergistic e-markets'
*
* @since 8.0.0
*/
buzzPhrase(): string {
return [this.buzzVerb(), this.buzzAdjective(), this.buzzNoun()].join(' ');
}
/**
* Returns a random catch phrase adjective that can be displayed to an end user..
*
* @example
* faker.company.catchPhraseAdjective() // 'Multi-tiered'
*
* @since 2.0.1
*/
catchPhraseAdjective(): string {
return this.faker.helpers.arrayElement(
this.faker.definitions.company.adjective
);
}
/**
* Returns a random catch phrase descriptor that can be displayed to an end user..
*
* @example
* faker.company.catchPhraseDescriptor() // 'composite'
*
* @since 2.0.1
*/
catchPhraseDescriptor(): string {
return this.faker.helpers.arrayElement(
this.faker.definitions.company.descriptor
);
}
/**
* Returns a random catch phrase noun that can be displayed to an end user..
*
* @example
* faker.company.catchPhraseNoun() // 'leverage'
*
* @since 2.0.1
*/
catchPhraseNoun(): string {
return this.faker.helpers.arrayElement(this.faker.definitions.company.noun);
}
/**
* Returns a random buzz adjective that can be used to demonstrate data being viewed by a manager.
*
* @example
* faker.company.buzzAdjective() // 'one-to-one'
*
* @since 8.0.0
*/
buzzAdjective(): string {
return this.faker.helpers.arrayElement(
this.faker.definitions.company.buzz_adjective
);
}
/**
* Returns a random buzz verb that can be used to demonstrate data being viewed by a manager.
*
* @example
* faker.company.buzzVerb() // 'empower'
*
* @since 8.0.0
*/
buzzVerb(): string {
return this.faker.helpers.arrayElement(
this.faker.definitions.company.buzz_verb
);
}
/**
* Returns a random buzz noun that can be used to demonstrate data being viewed by a manager.
*
* @example
* faker.company.buzzNoun() // 'paradigms'
*
* @since 8.0.0
*/
buzzNoun(): string {
return this.faker.helpers.arrayElement(
this.faker.definitions.company.buzz_noun
);
}
}
|