Use npm query and jq to dig into your dependencies
November 9, 2022
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
jqp which can be nice when iterating on a
Tweet about this post and have it show up here!