Skip to content

Instantly share code, notes, and snippets.

@frangio
Created January 7, 2023 02:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save frangio/31c4dc2c253b3a5139da2e1e08eeb247 to your computer and use it in GitHub Desktop.
Save frangio/31c4dc2c253b3a5139da2e1e08eeb247 to your computer and use it in GitHub Desktop.
Print a tree of deprecated npm dependencies
npm ls $(jq -r '.packages | to_entries[] | select(.value.deprecated != null) | .key | split("node_modules/")[-1]' package-lock.json)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment