You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Parse resolve output into normalized JSON with PURLs
Adds github.com/git-pkgs/resolve to parse raw package manager output
into a structured dependency graph. The resolve command now outputs
JSON with manager, ecosystem, and dependency tree including PURLs.
Use --raw for the previous behavior of printing unparsed output.
The `resolve` command prints raw dependency graph output from the package manager. Some managers produce JSON (npm, cargo, pip), others produce text trees (go, maven, poetry). Status lines go to stderr so stdout is clean for piping.
275
+
The `resolve` command runs the package manager's dependency graph command, parses the output into a normalized JSON structure with [PURLs](https://github.com/package-url/purl-spec), and prints the result. Use `--raw`to get the unparsed manager output instead.
276
276
277
277
Supports 35 package managers including npm, pnpm, yarn, bun, deno, bundler, gem, cargo, go, pip, uv, poetry, conda, composer, mix, rebar3, pub, cocoapods, swift, nuget, maven, gradle, sbt, cabal, stack, opam, luarocks, nimble, shards, cpanm, lein, vcpkg, conan, helm, and brew. The package manager is detected from lockfiles in the current directory.
0 commit comments