docs: clarify default catalog protocol behavior (#11381)

This commit is contained in:
Dami Oyeniyi authored and Zoltan Kochan committed 2026-05-05 19:37:24 +02:00
1 parent 16f5cd302a
commit 3fd440bc7f
1 file changed
+7
+7
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"`