-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Query Cookbook
Nathan Fritz edited this page Oct 26, 2022
·
4 revisions
npm query
uses a CSS-like syntax for selecting packages within your project's dependency tree.
This is an informal space for documenting "useful" queries that we've come across or developed.
Finds production dependencies that do not meet an engine spec.
There are entire npx
tools that do this.
(rsubset
coming soon)
npm query '.prod:attr(engines, [node]):not(:semver(^14.17.0 || ^16.13.0 || >=18, :attr(engines, [node]), rsubset))'
Author: @lukekarrys
explanation
npm query ...
Author: ...