UNPKG

cvss4

Version:

The **Common Vulnerability Scoring System (CVSS)** is a [scoring framework](https://www.first.org/cvss/) that provides numerical scores to assess the severity of software vulnerabilities. This TypeScript-based library offers support for CVSS versions **3.

10 lines (9 loc) 424 B
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>;