Skip to content

Generators

commerce

Products, departments, prices, SKUs, barcodes, reviews.

var faker = Faker(seed: 1337, locale: DecoyLocaleEN.locale)
faker.commerce.department()
Method Example output
department() Jewelery
Clothing
Sports
product() Bench
Tuna
Bacon
productAdjective() Electronic
Gorgeous
Practical
productMaterial() Plastic
Bamboo
Bronze
productName() Recycled Cotton Bacon
Unbranded Soft Sausages
Small Steel Cheese
productDescription() The Football Is Good For Training And Recreational Purposes
The Great Granite Chair has a comfortable seat and a sturdy frame
Ergonomic executive chair upholstered in bonded black leather and PVC padded seat
review() Does the job — the grip is better than I expected, though the weight could be better.
Arrived early and the size is worth every penny.
Does the job — the finish is better than I expected, though the grip could be better.
reviewTitle() Exactly what I wanted
Does what it says
Not for me
reviewAspect() the stitching
the fit
the colour
price(in range: ClosedRange<Double> = 1...1_000, decimals: Int = 2) 202.17
6.53
945.20
ean13() 6776849552669
6938991051890
2807591210317
sku() PS-2846-MW
ER-4389-DE
ZJ-9824-EW

Examples are real output from three different seeds, captured when this page was built, using each method’s default arguments. Where a signature shows parameters, pass your own to change the size, gender, length or format.