npm query

Print een array van afhankelijkheidsobjecten met behulp van CSS-achtige selectors. Meer informatie: https://docs.npmjs.com/cli/commands/npm-query.

npm query ':root > *'

npm query ':root > .{{prod|dev}}'

npm query '#{{pakket}}'

npm query '#{{pakket}}@{{semantische_versie}}'

npm query ':empty'

npm query ":attr(scripts, [postinstall])" | jq 'map(.name) | join("\n")' {{[-r|--raw-output]}} | xargs -I _ npm uninstall _

npm query ":type(git)" | jq 'map(.name)' | xargs -I _ npm why _