@rohit_coder/cvss
Version:
The Common Vulnerability Scoring System ([CVSS](https://www.first.org/cvss/)) [base](https://www.first.org/cvss/specification-document#Base-Metrics) [score](https://www.first.org/cvss/specification-document#1-2-Scoring) calculator and validator library wr
10 lines (9 loc) • 424 B
TypeScript
import { Metric, MetricValue } from './models';
export interface KeyValue<K, V> {
key: K;
value: V;
}
export declare const parseVersion: (cvssStr: string) => string | null;
export declare const parseVector: (cvssStr: string) => string | null;
export declare const parseMetrics: (vectorStr: string) => KeyValue<string, string>[];
export declare const parseMetricsAsMap: (cvssStr: string) => Map<Metric, MetricValue>;