Skip to content

The :registry() pseudo-class matches packages that belong to a specific named registry configuration.

Syntax

:registry(<name>)

Parameters

ParameterDescription
nameThe 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:

Terminal
$ vlt query ':registry(npm)'

Find packages from a custom registry:

Terminal
$ vlt query ':registry(custom)'

Combine with other selectors to find outdated packages from a specific registry:

Terminal
$ vlt query ':registry(npm):outdated'

See also