npm-query
Print an array of dependency objects using CSS-like selectors. tldr-pages
On several platforms
Several platforms
Print direct dependencies
npm query ':root > *'IdentifyPrint all direct production/development dependencies
npm query ':root > .prod'IdentifyPrint dependencies with a specific name
npm query '#package'IdentifyPrint dependencies with a specific name and within a semantic versioning range
npm query '#package@semantic_version'IdentifyPrint dependencies which have no dependencies
npm query ':empty'IdentifyFind all dependencies with postinstall scripts and uninstall them
npm query ":attr(scripts, [postinstall])" | jq 'map(.name) | join("\n")' --raw-output | xargs -I _ npm uninstall _IdentifyFind all Git dependencies and print which application requires them
npm query ":type(git)" | jq 'map(.name)' | xargs -I _ npm why _Identify