Formatter Class
Allocates a new formatter with the specified options.
Constructor
Item Index
Properties
- defaultOptions static
Methods
format
(
String
static
-
fstr -
[data]
Formats the given arguments described by the given formatstring.
Parameters:
-
fstrStringFormat string
-
[data]Any optional multipleData to be formatted
Returns:
String:
Formatted data
format
(
String
-
fstr -
[data]
Formats the given arguments described by the given formatstring.
Parameters:
-
fstrStringFormat string
-
[data]Any optional multipleData to be formatted
Returns:
String:
Formatted data
options
(
Formatter | Object
static
chainable
-
[options]
Sets the Formatter options or returns them if called without an argument.
Parameters:
-
[options]Object optionalFormatter options:
{ path: './', flavorId: 'flavorId', cultureId: 'cultureId', lineSeparator: '\n' }
Returns:
Formatter | Object:
Formatter if called as setter, Formatter options if called as getter
options
(
Object
chainable
-
[options]
Sets this Formatter's options or returns them if called without an argument.
Parameters:
-
[options]Object optionalFormatter options:
{ path: './', flavorId: 'flavorId', cultureId: 'cultureId', lineSeparator: '\n' }
Returns:
Object:
This Formatter's options if called as a getter,
this
if called as a setter
Properties
defaultOptions
Object
static
Default options for a new Formatter. Overwrite this property if you intend to allocate several formatters with default options different to those initially specified by this module.
