{"id":21387717,"url":"https://github.com/bugra9/cvss-calculator","last_synced_at":"2025-07-26T10:12:27.383Z","repository":{"id":57211197,"uuid":"297452422","full_name":"bugra9/cvss-calculator","owner":"bugra9","description":"Common Vulnerability Scoring System Calculator for v3.1, v3.0, v2.0, v1.0","archived":false,"fork":false,"pushed_at":"2023-06-13T08:37:16.000Z","size":90,"stargazers_count":7,"open_issues_count":1,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-12T19:47:36.375Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bugra9.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-09-21T20:22:57.000Z","updated_at":"2024-03-26T05:23:39.000Z","dependencies_parsed_at":"2023-01-23T10:15:26.891Z","dependency_job_id":null,"html_url":"https://github.com/bugra9/cvss-calculator","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bugra9%2Fcvss-calculator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bugra9%2Fcvss-calculator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bugra9%2Fcvss-calculator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bugra9%2Fcvss-calculator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bugra9","download_url":"https://codeload.github.com/bugra9/cvss-calculator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225893707,"owners_count":17540918,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-22T12:14:27.276Z","updated_at":"2024-11-22T12:14:27.831Z","avatar_url":"https://github.com/bugra9.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cvss-calculator\nCommon Vulnerability Scoring System Calculator for v3.1, v3.0, v2.0, v1.0\n\n## Installation\n\n**Direct \u003cscript\u003e**\n```html\n\u003cscript src=\"https://cdn.jsdelivr.net/npm/cvss-calculator/dist/cvss.js\"\u003e\u003c/script\u003e\n```\n\n```js\nconst cvss = new Cvss(\"Cvss Vector ...\");\nconst baseScore = cvss.getBaseScore();\n```\n\u003e Example: https://github.com/bugra9/cvss-calculator/tree/master/examples/browser\n\n**ES Module**\n```html\n\u003cscript type=\"module\"\u003e\n    import 'https://cdn.jsdelivr.net/npm/cvss-calculator/dist/cvss.js'\n\n    const cvss = new Cvss(\"Cvss Vector ...\");\n    const baseScore = cvss.getBaseScore();\n\u003c/script\u003e\n```\n\u003e Example: https://github.com/bugra9/cvss-calculator/tree/master/examples/module-browser\n\n**Builder such as Webpack (Vue, React, Angular, ...)**\n```bash\nyarn add cvss-calculator\n# or\nnpm install cvss-calculator\n```\n\n```js\nimport Cvss from 'cvss-calculator';\n\nconst cvss = new Cvss(\"Cvss Vector ...\");\nconst baseScore = cvss.getBaseScore();\n```\n\n**Node.js**\n```bash\nyarn add cvss-calculator\n# or\nnpm install cvss-calculator\n```\n\n```js\nimport Cvss from 'cvss-calculator';\n\nconst cvss = new Cvss(\"Cvss Vector ...\");\nconst baseScore = cvss.getBaseScore();\n```\n\u003e Example: https://github.com/bugra9/cvss-calculator/blob/master/examples/node.js/index.js\n\n## Usage\n```js\nimport Cvss from 'cvss-calculator';\n\nconst cvss = new Cvss(\"Cvss Vector ...\");\nconst baseScore = cvss.getBaseScore();\nconst rating = cvss.getRating();\nconst impactScore = cvss.getImpactScore();\nconst exploitabilityScore = cvss.getExploitabilityScore();\nconst temporalScore = cvss.getTemporalScore();\nconst environmentalScore = cvss.getEnvironmentalScore();\n\nconst cvssVersion = cvss.getVersion();\nconst cvssVector = cvss.getVector();\nconst cvssLongVector = cvss.getLongVector();\n\nconst cvss2 = new Cvss(\"Cvss Vector ...\");\nconst isEqual = cvss.isEqual(cvss2);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbugra9%2Fcvss-calculator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbugra9%2Fcvss-calculator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbugra9%2Fcvss-calculator/lists"}