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
- Enter token. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- 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 field | Meaning and units | Accepted input |
|---|---|---|
| token | Token | Required. Text; maximum UTF-16 length 8192. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| catalog | Catalog | Required. Text; maximum UTF-16 length 8192. |
| defaultCatalog | Default Catalog | Required. Boolean. |
{
"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
Similar or alternative tools
- Package JSON Export Condition Key
Inspect one package export-condition key under a restricted rule.
- Package Export Condition Priority
Select the first matching export-condition key.