mythx-report-helper
v1.5.3
Published
TS helper to manage mythx reports
Downloads
11
Keywords
Readme
MythX Report Helper
Usage
import { Report } from 'mythx-report-helper'
const apiIssues = await getReportFromMythxAPI(...)
const apiInput = await getIssuesFromMythxAPI(...)
const report = new Report(apiIssues, apiInput)
// then you can do stuff like
report.getIssuesBySeverity(severity: string)
report.getIssuesByFilename(fileName: string)
report.getIssues()
report.getNumberOfIssuesBySeverityByFile(severity: string, fileName: string)
report.getNumberOfIssuesBySeverity(severity: string)
report.getNumberOfIssues()