Given a package name and version, I want to find out what its dependencies are, ideally using an HTTP request.
Try sending a GET
request to e.g. https://registry.npmjs.org/ansi-codes
or https://registry.npmjs.org/ansi-codes/0.0.2
. See the API documentation.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With