Back to Pnpm

@pnpm/catalogs.protocol-parser

catalogs/protocol-parser/README.md

11.0.6333 B
Original Source

@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"