
npm-query
List of commands for npm-query:
-
npm-query:tldr:03071 npm-query: Print all direct production/development dependencies.$ npm query ':root > .${select}'try on your machineexplain this command
-
npm-query:tldr:14133 npm-query: Find all dependencies with postinstall scripts and uninstall them.$ npm query ":attr(scripts, [postinstall])" | jq 'map(.name) | join("\n")' -r | xargs -I {} npm uninstall {}try on your machineexplain this command
-
npm-query:tldr:2644d npm-query: Find all Git dependencies and print which application requires them.$ npm query ":type(git)" | jq 'map(.name)' | xargs -I {} npm why {}try on your machineexplain this command
-
npm-query:tldr:768cb npm-query: Print dependencies with a specific name.$ npm query '#${package_name}'try on your machineexplain this command
-
npm-query:tldr:809a4 npm-query: Print dependencies with a specific name and within a semantic versioning range.$ npm query #${package_name}@${semantic_version}try on your machineexplain this command
-
npm-query:tldr:b69a8 npm-query: Print direct dependencies.$ npm query ':root > *'try on your machineexplain this command
-
npm-query:tldr:e987c npm-query: Print dependencies which have no dependencies.$ npm query ':empty'try on your machineexplain this command