Forrest logo
back to context overview

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 machine
    explain 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 machine
    explain 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 machine
    explain this command
  • npm-query:tldr:768cb npm-query: Print dependencies with a specific name.
    $ npm query '#${package_name}'
    try on your machine
    explain 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 machine
    explain this command
  • npm-query:tldr:b69a8 npm-query: Print direct dependencies.
    $ npm query ':root > *'
    try on your machine
    explain this command
  • npm-query:tldr:e987c npm-query: Print dependencies which have no dependencies.
    $ npm query ':empty'
    try on your machine
    explain this command
back to context overview