# commerce
# color
Return random color name
faker.commerce.color(); // fuchsia
# department
Return random department name
faker.commerce.department(); // Grocery
# productName
Return random product name
faker.commerce.productName(); // Rustic Granite Shirt
# price([min, max, dec, symbol])
Generates random price
TIP
Param | Type | Default |
---|---|---|
min | number | 1 |
max | number | 1000 |
dec | number | 2 |
symbol | string | `` |
faker.commerce.price(); // 4.00
faker.commerce.price(2, 22, 1, '$'); // $7.0
# productAdjective
Return random product adjective
faker.commerce.productAdjective(); // Handmade
# productMaterial
Return random product material
faker.commerce.productMaterial(); // Steel
# product
Return random product
faker.commerce.product(); // Gloves