Skip to main content

getFormatter

getFormatter(options) ⇒ Formatter

Get formatter from options.format (default: summary)

Kind: global function
Returns: Formatter - - formatter with a format method that will return the result string.

ParamTypeDescription
optionsFormatterOptionsformatter options that may specify the formatter name.
options.cwdstringthe directory where custom format located.
options.formatOutputFormat | stringspecify the output format, it can be summary, json and customized format
options.outputFilestringspecify a output file to save the result.