npm.io
1100.0.1 • Published 3 weeks ago

@pnpm/catalogs.protocol-parser

Licence
MIT
Version
1100.0.1
Deps
0
Size
4 kB
Vulns
0
Weekly
0
Stars
36.0K

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

Keywords