Module to generate commerce and product related entries.For a long product name like 'Incredible Soft Gloves', use productName(). The product names are generated from a list of adjectives, materials, and products, which can each be accessed separately using productAdjective(), productMaterial(), and product(). You can also create a description using productDescription().For a department in a shop or product category, use department().You can also create a price using price().
department#
Returns a department inside a shop.
isbn#
Returns a random ISBN identifier.| Name | Type | Default | Description |
|---|
| separator | string | '-' | The separator to use in the format. |
| variant | 10 | 13 | 13 |
price#
Generates a price between min and max (inclusive).To better represent real-world prices, when options.dec is greater than 0, the final decimal digit in the returned string will be generated as follows:10% of the time: a random digit from 0 to 9
| Name | Type | Default | Description |
|---|
| dec | number | 2 | The number of decimal places. |
| max | number | 1000 | The maximum price. |
| min | number | 1 | The minimum price. |
| symbol | string | ‘’ | The currency value to use. |
product#
Returns a short product name.
productAdjective#
Returns an adjective describing a product.
productDescription#
Returns a product description.
productMaterial#
Returns a material of a product.
productName#
Generates a random descriptive product name. Modified at 2025-06-25 07:57:16