Gathering detailed insights and metrics for @beemo/dependency-graph
Gathering detailed insights and metrics for @beemo/dependency-graph
Gathering detailed insights and metrics for @beemo/dependency-graph
Gathering detailed insights and metrics for @beemo/dependency-graph
🤖 Centralized configuration layer for dev tools. Beep boop.
npm install @beemo/dependency-graph
Typescript
Module System
Min. Node Version
Node Version
NPM Version
@beemo/driver-mocha@2.0.5
Updated on Mar 01, 2022
@beemo/core@2.1.4
Updated on Mar 01, 2022
@beemo/local@1.0.7
Updated on Mar 01, 2022
@beemo/driver-babel@2.0.6
Updated on Mar 01, 2022
@beemo/driver-prettier@2.0.6
Updated on Mar 01, 2022
@beemo/cli@2.0.6
Updated on Mar 01, 2022
TypeScript (96.09%)
JavaScript (3.12%)
CSS (0.77%)
EJS (0.02%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
143 Stars
938 Commits
7 Forks
3 Watchers
4 Branches
7 Contributors
Updated on Sep 28, 2023
Latest Version
1.1.1
Package Id
@beemo/dependency-graph@1.1.1
Size
5.71 kB
NPM Version
lerna/3.20.2/node@v12.16.1+x64 (darwin)
Node Version
12.16.1
Published on
Apr 22, 2020
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
No dependencies detected.
Generate a dependency graph for a list of packages, based on their defined dependencies
and
peerDependencies
.
yarn add @beemo/dependency-graph
// Or
npm install @beemo/dependency-graph --save
To begin, instantiate an instance of Graph
, which accepts a list of optional package.json
objects as the first argument.
1import Graph from '@beemo/dependency-graph'; 2 3const graph = new Graph([ 4 { 5 name: '@beemo/core', 6 }, 7 { 8 name: '@beemo/cli', 9 dependencies: { 10 '@beemo/core': '^1.0.0', 11 }, 12 }, 13]);
Alternatively, package.json
objects can be added dynamically using Graph#addPackage
or
Graph#addPackages
.
1graph.addPackage({
2 name: '@beemo/driver-jest',
3 peerDependencies: {
4 '@beemo/core': '^1.0.0',
5 '@beemo/driver-babel': '^1.0.0',
6 },
7});
Once all packages have been defined, we can generate a graph using these Graph
methods:
resolveList
- Returns an array of packages in order of most depended on.resolveBatchList
- Like the previous, but returns the array batched based on depth.resolveTree
- Returns a tree of nodes based on the graph.1// List of packages 2graph.resolveList().forEach((pkg) => { 3 console.log(pkg.name); 4}); 5 6// List of list of packages 7graph.resolveBatchList().forEach((pkgs) => { 8 pkgs.forEach((pkg) => { 9 console.log(pkg.name); 10 }); 11}); 12 13// Tree of nodes 14graph.resolveTree().nodes.forEach((node) => { 15 console.log(node.package.name); 16 17 if (node.nodes) { 18 // Dependents 19 } 20});
Will only resolve and return packages that have been defined. Will not return non-defined packages found in
dependencies
andpeerDependencies
.
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
license file detected
Details
Reason
no binaries found in the repo
Reason
Found 0/21 approved changesets -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
project is archived
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
95 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More