-
Notifications
You must be signed in to change notification settings - Fork 4k
Open
Labels
Description
I'd like a way to combine the dependency selector syntax of npm query with the registry data provided by npm view. npm query only supports locally installed packages, and npm view doesn't support dependency selectors. For example, you could use this to find all packages depending on a vulnerable version of a package, or find alternative versions of dependencies that fit your requirements with less peer dependencies (especially useful with the more strict peer dependency algorithm of npm 7).
Possible commands
npm view #lodash(automatically prefix with#if a package spec is given for back compatibility)npm query --registry #lodash