Socket
Socket
Sign inDemoInstall

@changesets/get-dependents-graph

Package Overview
Dependencies
Maintainers
3
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@changesets/get-dependents-graph

Get the graph of dependents in a monorepo


Version published
Weekly downloads
837K
decreased by-8.76%
Maintainers
3
Weekly downloads
 
Created

What is @changesets/get-dependents-graph?

@changesets/get-dependents-graph is a utility package that helps in determining the dependency graph of a set of packages. It is particularly useful in monorepos where you need to understand the relationships between different packages and their dependents.

What are @changesets/get-dependents-graph's main functionalities?

Get Dependents Graph

This feature allows you to get the dependents graph of a set of packages. The code sample demonstrates how to use the `getDependentsGraph` function to determine which packages depend on which other packages.

const { getDependentsGraph } = require('@changesets/get-dependents-graph');
const packages = [
  { name: 'package-a', version: '1.0.0', dependencies: { 'package-b': '^1.0.0' } },
  { name: 'package-b', version: '1.0.0', dependencies: {} }
];
const dependentsGraph = getDependentsGraph(packages);
console.log(dependentsGraph);

Other packages similar to @changesets/get-dependents-graph

FAQs

Package last updated on 18 Dec 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