Maybe this question has already been asked but after a bit of googling I haven't found anything reasonable.
The main goal I'm trying to achieve is to obtain a dependency tree of a specific npmjs
library of specific version eg obtain dependency tree of library angular
of version 1.5.3
Now, I would like to use HTTP requests for this as much as possible instead of launching npm
on server-side or using some js library code for that.
What I've found out is:
Now, what I'm struggling to find is how to obtain package.json
of specific library and specific version because http://registry.npmjs.org/angular/1.5.3/package.json doesn't contain anything
Thanks a lot in advance for any hints!
Ok, it turns that list of dependencies is actually present in file with metadata for the whole package ( located in http://registry.npmjs.org/package-name ).
It's located in versions -> [version-id] -> dependencies
, devDependencies
and optionalDependencies
properties.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.