You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

@vltpkg/graph

Package Overview
Dependencies
Maintainers
5
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vltpkg/graph - npm Package Compare versions

Comparing version
0.0.0-3
to
0.0.0-4
+16
-16
package.json
{
"name": "@vltpkg/graph",
"description": "A library that helps understanding & expressing what happens on an install",
"version": "0.0.0-3",
"version": "0.0.0-4",
"repository": {

@@ -26,17 +26,17 @@ "type": "git",

"promise-call-limit": "^3.0.2",
"@vltpkg/dep-id": "0.0.0-3",
"@vltpkg/error-cause": "0.0.0-3",
"@vltpkg/package-info": "0.0.0-3",
"@vltpkg/output": "0.0.0-3",
"@vltpkg/fast-split": "0.0.0-3",
"@vltpkg/pick-manifest": "0.0.0-3",
"@vltpkg/package-json": "0.0.0-3",
"@vltpkg/registry-client": "0.0.0-3",
"@vltpkg/rollback-remove": "0.0.0-3",
"@vltpkg/run": "0.0.0-3",
"@vltpkg/satisfies": "0.0.0-3",
"@vltpkg/semver": "0.0.0-3",
"@vltpkg/types": "0.0.0-3",
"@vltpkg/workspaces": "0.0.0-3",
"@vltpkg/spec": "0.0.0-3"
"@vltpkg/error-cause": "0.0.0-4",
"@vltpkg/dep-id": "0.0.0-4",
"@vltpkg/fast-split": "0.0.0-4",
"@vltpkg/package-info": "0.0.0-4",
"@vltpkg/package-json": "0.0.0-4",
"@vltpkg/pick-manifest": "0.0.0-4",
"@vltpkg/output": "0.0.0-4",
"@vltpkg/registry-client": "0.0.0-4",
"@vltpkg/rollback-remove": "0.0.0-4",
"@vltpkg/run": "0.0.0-4",
"@vltpkg/semver": "0.0.0-4",
"@vltpkg/satisfies": "0.0.0-4",
"@vltpkg/spec": "0.0.0-4",
"@vltpkg/workspaces": "0.0.0-4",
"@vltpkg/types": "0.0.0-4"
},

@@ -43,0 +43,0 @@ "devDependencies": {

+13
-12

@@ -5,7 +5,6 @@ ![graph](https://github.com/user-attachments/assets/dfbed9e0-8ef0-4a43-993d-d3e5d1e5ae1d)

This is the graph library responsible for representing the packages that are involved in a given install.
This is the graph library responsible for representing the packages
that are involved in a given install.
**[API](#api)**
·
**[Usage](#usage)**
**[API](#api)** · **[Usage](#usage)**

@@ -16,10 +15,12 @@ ## API

Recursively loads the `node_modules` folder found at `projectRoot` in order to
create a graph representation of the current installed packages.
Recursively loads the `node_modules` folder found at `projectRoot` in
order to create a graph representation of the current installed
packages.
### `async ideal.build({ projectRoot: string }): Promise<Graph>`
This method returns a new `Graph` object, reading from the `package.json`
file located at `projectRoot` dir and building up the graph representation
of nodes and edges from the files read from the local file system.
This method returns a new `Graph` object, reading from the
`package.json` file located at `projectRoot` dir and building up the
graph representation of nodes and edges from the files read from the
local file system.

@@ -32,5 +33,5 @@ ### `lockfile.load({ mainManifest: Manifest, projectRoot: string }): Graph`

Here's a quick example of how to use the `@vltpkg/graph.ideal.build` method to
build a graph representation of the install defined at the `projectRoot`
directory.
Here's a quick example of how to use the `@vltpkg/graph.ideal.build`
method to build a graph representation of the install defined at the
`projectRoot` directory.

@@ -37,0 +38,0 @@ ```