Socket
Socket
Sign inDemoInstall

@npmcli/metavuln-calculator

Package Overview
Dependencies
Maintainers
5
Versions
20
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


Version published
Maintainers
5
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 26 Mar 2021

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc