Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@npmcli/metavuln-calculator

Package Overview
Dependencies
Maintainers
5
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@npmcli/metavuln-calculator

Calculate meta-vulnerabilities from package security advisories

  • 5.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2.4M
decreased by-8.83%
Maintainers
5
Weekly downloads
 
Created

What is @npmcli/metavuln-calculator?

The @npmcli/metavuln-calculator package is designed to assess and calculate the vulnerability of npm packages by analyzing their dependencies. It helps in identifying known vulnerabilities in a project's dependency tree, allowing developers to understand and mitigate potential security risks in their npm packages.

What are @npmcli/metavuln-calculator's main functionalities?

Vulnerability Calculation

This feature allows developers to calculate the vulnerabilities in their npm package dependencies. The code sample demonstrates how to create a new instance of the calculator, passing in a cache object and the npm registry URL, and then calculate vulnerabilities using package metadata and advisories.

const Calculator = require('@npmcli/metavuln-calculator');
const calc = new Calculator({
  cache: {},
  registry: 'https://registry.npmjs.org'
});
calc.calculate(metadata, advisories).then(result => {
  console.log(result);
});

Other packages similar to @npmcli/metavuln-calculator

FAQs

Package last updated on 13 Oct 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc