Skip to content

Commit

Permalink
Merge pull request #60 from turingpointde/feat/#26-support-version-3-1
Browse files Browse the repository at this point in the history
fix #26: bump version
  • Loading branch information
Fubinator authored Oct 14, 2020
2 parents d4747e4 + 65a3ff0 commit e18b543
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
<h1 align="center">cvss.js by <a href="https://turingpoint.eu" target="_blank">turingpoint.</a></h1>
<p>
<img alt="Version" src="https://img.shields.io/badge/version-1.3.5-blue.svg?cacheSeconds=2592000" />
<img alt="Version" src="https://img.shields.io/badge/version-1.4.0-blue.svg?cacheSeconds=2592000" />
<a href="#" target="_blank">
<img alt="License: MIT" src="https://img.shields.io/badge/License-MIT-yellow.svg" />
</a>
</p>

> A tiny library to work with [CVSS vectors](https://www.first.org/cvss/v3.0/specification-document) in JavaScript
Note: We currently only support vectors from CVSS version 3.0.
> 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).
## Installation

Expand Down Expand Up @@ -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");
console.log(vector.getRating()); // Medium
```

A few useful variables to work with the vectors:
A few useful variables/functions to work with the vectors:

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

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

The following functions are suitable for displaying the vector in a human-readable form or for performing your own calculations with the vector
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@turingpointde/cvss.js",
"version": "1.3.5",
"version": "1.4.0",
"description": "A tiny library to work with cvss vectors",
"scripts": {
"build": "webpack",
Expand Down

0 comments on commit e18b543

Please sign in to comment.