new Structured()
/**
Provider for structured text data such as CSS, HTML, JSON etc.
Methods
css()
Generates a random snippet of CSS.
cssProperty()
Generates a random snippet of CSS that assigns value to a property.
html() → {*}
Generate a random HTML tag with text inside and some attrs set.
Returns:
- Type
- *
htmlAttrValue(opts)
Random value for specified HTML tag attribute.
Parameters:
Name | Type | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
opts |
object | Options
Properties
|
json(opts) → {*}
Generate random JSON snippet.
Parameters:
Name | Type | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
opts |
object | options
Properties
|
Returns:
- Type
- *