logical.ReportFormattypeno test imports ittype ReportFormat = "sarif" | "zap" | "burp" | "nessus" | "nuclei" | "nmap";The report formats.
Which importer reads a report: by what is in it. A JSON with runs and a version is SARIF, one with site is a ZAP report; an XML with <issues is a Burp report and one with <NessusClientData a Nessus export.
import { detectFormat } from "./detect.ts";
detectFormat("a.xml", "<issues/>"); // "burp"logical.ReportFormattypeno test imports ittype ReportFormat = "sarif" | "zap" | "burp" | "nessus" | "nuclei" | "nmap";The report formats.
logical.detectFormatfunctionno test imports itfunction detectFormat(text: string): ReportFormat | undefinedThe format of a report, or nothing where none is read.
logical.importReportfunctionno test imports itfunction importReport(file: string, text: string, asset?: string): Imported & { readonly format: ReportFormat | undefined; }The findings of a report by its format; asset is the system a SARIF report is of (the others say theirs).
ReportFormattypeno test imports ittype ReportFormat = "sarif" | "zap" | "burp" | "nessus" | "nuclei" | "nmap";The report formats.
detectFormatfunctionfunction detectFormat(text: string): ReportFormat | undefinedThe format of a report, or nothing where none is read.
importReportfunctionfunction importReport(file: string, text: string, asset?: string): Imported & { readonly format: ReportFormat | undefined; }The findings of a report by its format; asset is the system a SARIF report is of (the others say theirs).