Skip to content

Commit e18b543

Browse files
authored
Merge pull request #60 from turingpointde/feat/#26-support-version-3-1
fix #26: bump version
2 parents d4747e4 + 65a3ff0 commit e18b543

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

README.md

+4-5
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
11
<h1 align="center">cvss.js by <a href="https://turingpoint.eu" target="_blank">turingpoint.</a></h1>
22
<p>
3-
<img alt="Version" src="https://img.shields.io/badge/version-1.3.5-blue.svg?cacheSeconds=2592000" />
3+
<img alt="Version" src="https://img.shields.io/badge/version-1.4.0-blue.svg?cacheSeconds=2592000" />
44
<a href="#" target="_blank">
55
<img alt="License: MIT" src="https://img.shields.io/badge/License-MIT-yellow.svg" />
66
</a>
77
</p>
88

9-
> A tiny library to work with [CVSS vectors](https://www.first.org/cvss/v3.0/specification-document) in JavaScript
10-
11-
Note: We currently only support vectors from CVSS version 3.0.
9+
> A tiny library to work with [CVSS vectors](https://www.first.org/cvss/v3.0/specification-document) (v3.0 and v3.1) in JavaScript. The Common Vulnerability Scoring System (CVSS) is a free and open standard. It is owned and managed by [FIRST.Org](https://first.org).
1210
1311
## Installation
1412

@@ -87,13 +85,14 @@ const vector = CVSS("CVSS:3.0/AV:N/AC:H/PR:L/UI:R/S:C/C:N/I:L/A:L");
8785
console.log(vector.getRating()); // Medium
8886
```
8987

90-
A few useful variables to work with the vectors:
88+
A few useful variables/functions to work with the vectors:
9189

9290
```js
9391
const vector = CVSS("CVSS:3.0/AV:N/AC:H/PR:L/UI:R/S:C/C:N/I:L/A:L");
9492

9593
console.log(vector.isValid); // true
9694
console.log(vector.vector); // CVSS:3.0/AV:N/AC:H/PR:L/UI:R/S:C/C:N/I:L/A:L
95+
console.log(vector.getVersion()); // "3.0"
9796
```
9897

9998
The following functions are suitable for displaying the vector in a human-readable form or for performing your own calculations with the vector

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@turingpointde/cvss.js",
3-
"version": "1.3.5",
3+
"version": "1.4.0",
44
"description": "A tiny library to work with cvss vectors",
55
"scripts": {
66
"build": "webpack",

0 commit comments

Comments
 (0)