UNPKG

@neuralegion/cvss

Version:

The Common Vulnerability Scoring System ([CVSS](https://www.first.org/cvss/)) [score](https://www.first.org/cvss/specification-document#1-2-Scoring) calculator and validator library written in [TypeScript](https://www.typescriptlang.org/).

9 lines (8 loc) 371 B
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<string, string>;