Given a package name and version, I want to find out what its dependencies are, ideally using an HTTP request.
Asked
Active
Viewed 374 times
1 Answers
3
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.

Carl Patenaude Poulin
- 6,238
- 5
- 24
- 46