Use npm query and jq to dig into your dependencies

Published

November 9, 2022

Reading time
1 min read

You can use the new npm query command and jq to answer interesting questions about your package's dependencies.

You need npm v8.10 or above for the query command. You can find more info from a recent github blog post.

Dig in deeper with npm query using other dependency selectors from npm's documentation.

In the video, I used jq to further take the data from npm query and manipulate the results.

I also showed using a TUI wapper around jq called jqp which can be nice when iterating on a jq filter.

Web Mentions
0
0

Tweet about this post and have it show up here!