docs: clarify default catalog protocol behavior (#11381)

This commit is contained in:
Dami Oyeniyi
2026-05-05 14:02:36 +01:00
committed by Zoltan Kochan
parent 16f5cd302a
commit 3fd440bc7f

View File

@@ -1,3 +1,10 @@
# @pnpm/catalogs.protocol-parser
> Parse catalog protocol specifiers and return the catalog name.
Catalog protocol specifiers start with `catalog:`. The parser reads the value after that prefix as the catalog name, and returns `default` when no name is provided.
## Examples
- `catalog:foo` -> `"foo"`
- `catalog:` -> `"default"`