npm packages
npm.packages MQL resource for querying Operating System infrastructure with cnquery and cnspec.
Operating System
npm packages
Use MQL in cnspec shell or policy:
npm.packagesMin version: latest
Relationships
3 resources · 5 relationships·Click to select, expand fields to see properties.
Fields (7)
| Field | Type | Description |
|---|---|---|
directDependencies | []npm.package | List of direct dependencies |
files | []pkgFileInfo | Files used to determine the packages |
list | []npm.package | - |
pathrequired | string | Deprecated: path to search for packages, use paths instead |
paths | []string | Optional: list of paths searched for packages |
root | npm.package | Root Package (may not exist) |
scripts | map[string]string | scripts defined in package json |