-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Example o how to use https://pkg.go.dev/deps.dev/util/[email protected]/npm #184
Comments
@cuixq Why is it making a network call via a client? |
Network calls are needed to fetch metadata of npm packages and versions. The client being used is defined here. |
@cuixq |
Hi @pjebs! If you want, you can create your own implementation of the Client interface, which can provide metadata however you want. The LocalClient implementation (also in the file that @cuixq linked above) is an example of this, which is used for testing, but that could also be a good starting point for a custom implementation. |
Q1 Does this require a Q2 What does this package actually do? I have a |
If I was to provide a
package.json
file with a list of dependencies, how can I use https://pkg.go.dev/deps.dev/util/[email protected]/npm to resolve all the dependencies to determine which versions of each npm package to download?It seems to be undocumented how to use this package.
The text was updated successfully, but these errors were encountered: