Skip to main content

get-formatter

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.