Skip to main content

file-writer

writeResultsToFile(result, cwd, [outputFile]) โ‡’ *

A utility function to write results to an output file. If no outputFile is given, it uses a default output file name in the format "checkup-report-YYYY-MM-DD-HH_mm_ss". If result is a string the extension is .txt, otherwise .sarif is used.

Kind: global function
Returns: * - {string}

ParamTypeDefaultDescription
resultLog | stringThe result to be output, either a SARIF log or a string.
cwdstringThe current working directory to write to.
[outputFile]string"DEFAULT_OUTPUT_FILENAME"The output filename format.