Socket
Socket
Sign inDemoInstall

@changesets/get-dependents-graph

Package Overview
Dependencies
5
Maintainers
3
Versions
22
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

@changesets/get-dependents-graph


Version published
Weekly downloads
758K
increased by7.82%
Maintainers
3
Install size
2.97 MB
Created
Weekly downloads
 

Package description

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

Readme

Source

Get Dependents Graph

View changelog

Small helper utility extracted from bolt to get a graph of relationships between packages.

import { getDependentsGraph } from "@changesets/get-dependents-graph";
import { getPackages } from "@manypkg/get-packages";

let { graph, valid } = getDependentsGraph(await getPackages(cwd));

Mostly published for use in changesets

FAQs

Last updated on 20 Apr 2020

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc