Skip to content

Main content

Pnpm Catalog Reference Token Tool

Compute pnpm catalog reference token from explicit bounded inputs.

Loading tool…

Description

Parse a pnpm catalog reference token.

Package and container references combine names, selectors, conditions and platform metadata. A restricted lexical split can preserve these parts without validating registry identity, available targets, dependency graphs or runtime resolution.

Parse a pnpm catalog reference token.

When to use this tool

Use Pnpm Catalog Reference Token when checking the stated package, Cargo or container-reference component.

How to use the tool and how it works

  1. Enter token. Use the units and conventions below.
  2. Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
  3. Read catalog, defaultCatalog. Inspect defaultCatalog before interpreting the associated values.

Parse a pnpm catalog reference token. Accept catalog: followed by zero or more ASCII letters/digits/underscore/dot/hyphen; return the suffix and defaultCatalog for an empty suffix.1

Input fieldMeaning and unitsAccepted input
tokenTokenRequired. Text; maximum UTF-16 length 8192.
Output fieldInterpretationReturned shape
catalogCatalogRequired. Text; maximum UTF-16 length 8192.
defaultCatalogDefault CatalogRequired. Boolean.
json
{
  "input": {
    "token": "catalog:react19"
  },
  "output": {
    "catalog": "react19",
    "defaultCatalog": false
  }
}

Limitations and assumptions

  • No catalog or dependency is resolved, and the restricted token grammar is implementation-specific.
  • Inputs must satisfy both the field types and the cross-field conditions above. Invalid input causes an error; a successful false flag or documented placeholder is a different result.

Alternative or Complementary methods

Use the relevant package manager, runtime or registry against the actual project for complete resolution and validation.

References

  1. Calculation and input contract: development/pnpm-catalog-reference-token — tool.io

Similar or alternative tools