vlt / docs

  • PricingBenchmarks (opens in new window)Community (opens in new window)Feedback
  • Overview
  • Attribute Selectors
  • Combinators
  • ID Selectors
  • Security Insights
    • Overview
    • :attr()
    • :has()
    • :dist()
    • :host()
    • :is()
    • :not()
    • :outdated()
    • :published()
    • :semver()
    • :spec()
    • :path()
    • :type()
    • :diff()
    • :hostname()
    • :registry()
  • Syntax
  • Parameters
  • How it works
  • Examples
  • See also
  1. Client
  2. /
  3. Selectors
  4. /
  5. Pseudo-classes
  6. /
  7. :registry()

:registry()

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

Syntax

Text
: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 npm registry alias (the default bare-spec alias):

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

  • :hostname() — match by upstream hostname
  • :type() — match by package type

Previous:hostname()NextOverview

On this page

  • Syntax
  • Parameters
  • How it works
  • Examples
  • See also
Edit this page

Deploy your package on vlt.io

Publish scoped and private packages, manage organizations and access, and give every developer and CI environment a consistent source for public and private JavaScript dependencies.

Publish now