Open vytenis-nfq opened 5 years ago
npm info npmf
provides extra info which is not needed and also doesn't provide the quick links like Github repo URL or npm url such that I can visit the link easily instead of opening a new tab and then search on google.
npm info npmf repository.url
Probably your package should be just a mix of default https://docs.npmjs.com/cli/view.html commands instead including extra dependency like axios
and fetching info individually
If you use the mix of npm commands (e.g. npm info react
and npm info react repository.url
) to fetch single info about a package, then you are spawning multiple processes which may affect your app perf.
But you can get all data at once like npm info react --json
and just grab all required fields as you do right now :bust_in_silhouette:
Or just grab only needed info at once npm info react repository.url version --json
{
"repository.url": "git+https://github.com/facebook/react.git",
"version": "16.8.4"
}
Why not just
npm info npmf