:registry()
The :registry() pseudo-class matches packages that belong to a
specific named registry configuration.
Syntax
:registry(<name>)Parameters
| Parameter | Description |
|---|---|
name | The registry configuration alias (e.g. npm, custom) |
How it works
Packages are associated with a registry name based on the registries
configuration in your project. The default registry is typically named
npm. Custom registries configured via --registries or in
vlt.json can be matched by their alias name.
Only registry-type packages are matched — git, file, and workspace packages are excluded.
Examples
Find all packages from the default npm registry:
$ vlt query ':registry(npm)'Find packages from a custom registry:
$ vlt query ':registry(custom)'Combine with other selectors to find outdated packages from a specific registry:
$ vlt query ':registry(npm):outdated'See also
:hostname()— match by upstream hostname:type()— match by package type