import FormatJSON from 'typhonjs-escomplex-commons/src/transform/formats/json/FormatJSON.js'
FormatJSON
Provides a format transform for ESComplex report instances converting them to a JSON string.
Member Summary
Public Members | ||
public get |
Gets the file extension. |
|
public get |
Gets the format name. |
|
public get |
Gets the format type. |
Method Summary
Public Methods | ||
public |
formatReport(report: ClassReport | MethodReport | ModuleReport | ProjectReport, options: object): string Formats a report as a JSON string. |
|
public |
Returns whether a given ReportType is supported by this format transform. |
Public Members
Public Methods
public formatReport(report: ClassReport | MethodReport | ModuleReport | ProjectReport, options: object): string source
Formats a report as a JSON string.
Params:
Name | Type | Attribute | Description |
report | ClassReport | MethodReport | ModuleReport | ProjectReport | A report to format. |
|
options | object | (Optional) One or more optional parameters passed to the formatter. |