@@ -80,8 +80,8 @@ const name = faker.person.fullName()
8080const email = faker .internet .email ()
8181const address = faker .address .city ()
8282
83- console .log (name ) // "John Doe"
84- console .log (email ) // "john.doe@example.com"
83+ console .log (name ) // "John Doe"
84+ console .log (email ) // "john.doe@example.com"
8585console .log (address ) // "New York"
8686```
8787
@@ -101,7 +101,7 @@ const chineseFaker = new Faker({ locale: 'zh' })
101101
102102console .log (spanishFaker .person .fullName ()) // "Carlos López"
103103console .log (japaneseFaker .person .fullName ()) // "田中太郎"
104- console .log (chineseFaker .person .fullName ()) // "王伟"
104+ console .log (chineseFaker .person .fullName ()) // "王伟"
105105```
106106
107107### Available Locales
@@ -133,123 +133,123 @@ console.log(chineseFaker.person.fullName()) // "王伟"
133133import { faker } from ' nanofaker'
134134
135135// Person
136- faker .person .firstName () // Random first name
137- faker .person .firstName ({ gender: ' male' }) // Random male first name
138- faker .person .firstName ({ gender: ' female' }) // Random female first name
139- faker .person .firstName ({ gender: ' neutral' }) // Random neutral first name
140- faker .person .firstNameMale () // Random male first name
141- faker .person .firstNameFemale () // Random female first name
142- faker .person .firstNameNeutral () // Random neutral first name
143- faker .person .lastName () // Random last name
144- faker .person .fullName () // Random full name
145- faker .person .fullName ({ gender: ' male' }) // Random full name with male first name
146- faker .person .fullName ({ gender: ' female' }) // Random full name with female first name
147- faker .person .fullName ({ prefix: true }) // Random full name with prefix
148- faker .person .fullName ({ suffix: true }) // Random full name with suffix
149- faker .person .gender () // Random gender
150- faker .person .jobTitle () // Random job title
151- faker .person .prefix () // Random prefix (Mr., Mrs., etc.)
152- faker .person .suffix () // Random suffix (Jr., Sr., etc.)
136+ faker .person .firstName () // Random first name
137+ faker .person .firstName ({ gender: ' male' }) // Random male first name
138+ faker .person .firstName ({ gender: ' female' }) // Random female first name
139+ faker .person .firstName ({ gender: ' neutral' }) // Random neutral first name
140+ faker .person .firstNameMale () // Random male first name
141+ faker .person .firstNameFemale () // Random female first name
142+ faker .person .firstNameNeutral () // Random neutral first name
143+ faker .person .lastName () // Random last name
144+ faker .person .fullName () // Random full name
145+ faker .person .fullName ({ gender: ' male' }) // Random full name with male first name
146+ faker .person .fullName ({ gender: ' female' }) // Random full name with female first name
147+ faker .person .fullName ({ prefix: true }) // Random full name with prefix
148+ faker .person .fullName ({ suffix: true }) // Random full name with suffix
149+ faker .person .gender () // Random gender
150+ faker .person .jobTitle () // Random job title
151+ faker .person .prefix () // Random prefix (Mr., Mrs., etc.)
152+ faker .person .suffix () // Random suffix (Jr., Sr., etc.)
153153
154154// Address
155- faker .address .street () // Random street name
156- faker .address .city () // Random city
157- faker .address .state () // Random state/province
158- faker .address .country () // Random country
159- faker .address .zipCode () // Random ZIP/postal code
160- faker .address .direction () // Random direction (North, South, etc.)
155+ faker .address .street () // Random street name
156+ faker .address .city () // Random city
157+ faker .address .state () // Random state/province
158+ faker .address .country () // Random country
159+ faker .address .zipCode () // Random ZIP/postal code
160+ faker .address .direction () // Random direction (North, South, etc.)
161161
162162// Company
163- faker .company .name () // Random company name
164- faker .company .industry () // Random industry
165- faker .company .buzzword () // Random business buzzword
163+ faker .company .name () // Random company name
164+ faker .company .industry () // Random industry
165+ faker .company .buzzword () // Random business buzzword
166166
167167// Internet
168- faker .internet .email () // Random email address
169- faker .internet .domainName () // Random domain name
170- faker .internet .url () // Random URL
168+ faker .internet .email () // Random email address
169+ faker .internet .domainName () // Random domain name
170+ faker .internet .url () // Random URL
171171
172172// Phone
173- faker .phone .number () // Random phone number
173+ faker .phone .number () // Random phone number
174174
175175// Food
176- faker .food .dish () // Random dish name
177- faker .food .ingredient () // Random ingredient
178- faker .food .cuisine () // Random cuisine type
179- faker .food .dessert () // Random dessert
180- faker .food .fruit () // Random fruit
181- faker .food .vegetable () // Random vegetable
182- faker .food .meat () // Random meat
183- faker .food .spice () // Random spice
176+ faker .food .dish () // Random dish name
177+ faker .food .ingredient () // Random ingredient
178+ faker .food .cuisine () // Random cuisine type
179+ faker .food .dessert () // Random dessert
180+ faker .food .fruit () // Random fruit
181+ faker .food .vegetable () // Random vegetable
182+ faker .food .meat () // Random meat
183+ faker .food .spice () // Random spice
184184
185185// Animal
186- faker .animal .dog () // Random dog breed
187- faker .animal .cat () // Random cat breed
188- faker .animal .bird () // Random bird species
189- faker .animal .fish () // Random fish species
190- faker .animal .horse () // Random horse breed
191- faker .animal .rabbit () // Random rabbit breed
192- faker .animal .insect () // Random insect
186+ faker .animal .dog () // Random dog breed
187+ faker .animal .cat () // Random cat breed
188+ faker .animal .bird () // Random bird species
189+ faker .animal .fish () // Random fish species
190+ faker .animal .horse () // Random horse breed
191+ faker .animal .rabbit () // Random rabbit breed
192+ faker .animal .insect () // Random insect
193193
194194// Sport
195- faker .sport .sport () // Random sport name
196- faker .sport .team () // Random team name
197- faker .sport .athlete () // Random athlete name
195+ faker .sport .sport () // Random sport name
196+ faker .sport .team () // Random team name
197+ faker .sport .athlete () // Random athlete name
198198
199199// Music
200- faker .music .genre () // Random music genre
201- faker .music .artist () // Random artist name
202- faker .music .song () // Random song title
203- faker .music .instrument () // Random instrument
200+ faker .music .genre () // Random music genre
201+ faker .music .artist () // Random artist name
202+ faker .music .song () // Random song title
203+ faker .music .instrument () // Random instrument
204204
205205// Commerce
206- faker .commerce .product () // Random product name
207- faker .commerce .adjective () // Random product adjective
208- faker .commerce .material () // Random material
209- faker .commerce .department () // Random department
210- faker .commerce .color () // Random color
206+ faker .commerce .product () // Random product name
207+ faker .commerce .adjective () // Random product adjective
208+ faker .commerce .material () // Random material
209+ faker .commerce .department () // Random department
210+ faker .commerce .color () // Random color
211211
212212// Book
213- faker .book .title () // Random book title
214- faker .book .author () // Random author name
215- faker .book .publisher () // Random publisher
216- faker .book .genre () // Random book genre
217- faker .book .series () // Random book series
218- faker .book .review () // Random book review
213+ faker .book .title () // Random book title
214+ faker .book .author () // Random author name
215+ faker .book .publisher () // Random publisher
216+ faker .book .genre () // Random book genre
217+ faker .book .series () // Random book series
218+ faker .book .review () // Random book review
219219
220220// Vehicle
221- faker .vehicle .manufacturer () // Random vehicle manufacturer
222- faker .vehicle .model () // Random vehicle model
223- faker .vehicle .type () // Random vehicle type
224- faker .vehicle .fuel () // Random fuel type
225- faker .vehicle .bicycle () // Random bicycle type
221+ faker .vehicle .manufacturer () // Random vehicle manufacturer
222+ faker .vehicle .model () // Random vehicle model
223+ faker .vehicle .type () // Random vehicle type
224+ faker .vehicle .fuel () // Random fuel type
225+ faker .vehicle .bicycle () // Random bicycle type
226226
227227// Word
228- faker .word .adjective () // Random adjective
229- faker .word .adverb () // Random adverb
230- faker .word .conjunction () // Random conjunction
231- faker .word .interjection () // Random interjection
232- faker .word .noun () // Random noun
233- faker .word .preposition () // Random preposition
234- faker .word .verb () // Random verb
228+ faker .word .adjective () // Random adjective
229+ faker .word .adverb () // Random adverb
230+ faker .word .conjunction () // Random conjunction
231+ faker .word .interjection () // Random interjection
232+ faker .word .noun () // Random noun
233+ faker .word .preposition () // Random preposition
234+ faker .word .verb () // Random verb
235235
236236// Hacker/Tech
237- faker .hacker .abbreviation () // Random tech abbreviation
238- faker .hacker .adjective () // Random tech adjective
239- faker .hacker .noun () // Random tech noun
240- faker .hacker .verb () // Random tech verb
241- faker .hacker .ingverb () // Random tech -ing verb
242- faker .hacker .phrase () // Random tech phrase
237+ faker .hacker .abbreviation () // Random tech abbreviation
238+ faker .hacker .adjective () // Random tech adjective
239+ faker .hacker .noun () // Random tech noun
240+ faker .hacker .verb () // Random tech verb
241+ faker .hacker .ingverb () // Random tech -ing verb
242+ faker .hacker .phrase () // Random tech phrase
243243
244244// System
245- faker .system .fileName () // Random file name
246- faker .system .fileType () // Random file type
245+ faker .system .fileName () // Random file name
246+ faker .system .fileType () // Random file type
247247
248248// Science
249249faker .science .chemicalElement () // Random chemical element
250- faker .science .unit () // Random unit of measurement
251- faker .science .constant () // Random scientific constant
252- faker .science .field () // Random scientific field
250+ faker .science .unit () // Random unit of measurement
251+ faker .science .constant () // Random scientific constant
252+ faker .science .field () // Random scientific field
253253```
254254
255255## Command Line Interface
0 commit comments