new Text(opts)
Class for generate text data, i.e text, lorem ipsum and another.
Parameters:
Name | Type | Description | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
opts |
object | Options
Properties
|
Methods
alphabet(opts)
Get an alphabet for current locale.
Parameters:
Name | Type | Description | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
opts |
object | Options
Properties
|
answer()
Get a random answer in current language.
color()
Get a random color
hexColor()
Generate a random hex color.
level()
Generate a random level of danger or something else.
quote()
Get a random quote.
sentence()
Get a random sentence from text.
swearWord()
Get a random swear word.
text(opts)
Generate the text.
Parameters:
Name | Type | Description | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
opts |
object | Options
Properties
|
word()
Get a random word.
words(opts)
Get the random words.
Parameters:
Name | Type | Description | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
opts |
object | Options
Properties
|