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
I would like to know if there is an existing API that allows users to retrieve the Git link of a package by providing its name. For example, if I have the package name loose-envify, which is a dependency of react, how can I find its corresponding Git link programmatically?
If such an API exists, could you please provide documentation or examples on how to use it? If not, are there any recommended approaches or tools to achieve this?
Thank you for your assistance!
The text was updated successfully, but these errors were encountered:
To retrieve the Git repository link for a package, you can use the Deps.dev API. Provide the Package URL (PURL) for the package you're interested in. For example, for pkg:npm/[email protected] (you can remove the version), you can make the following request:
Look for the links field in the response to find the relevant repository information.
Alternatively, you can use Macaron, a tool that leverages deps.dev and other sources to identify Git repository links, validate them, and also find the exact commit corresponding to the artifact version. If you are not interested in a particular version, you can remove the version and Macaron will still report the Git repo link and the commit for the latest version.
Hello,
I would like to know if there is an existing API that allows users to retrieve the Git link of a package by providing its name. For example, if I have the package name loose-envify, which is a dependency of react, how can I find its corresponding Git link programmatically?
If such an API exists, could you please provide documentation or examples on how to use it? If not, are there any recommended approaches or tools to achieve this?
Thank you for your assistance!
The text was updated successfully, but these errors were encountered: