UNPKG

@pnpm/catalogs.protocol-parser

Version:

Parse catalog protocol specifiers and return the catalog name.

6 lines (5 loc) 249 B
/** * Parse a package.json dependency specifier using the catalog: protocol. * Returns null if the given specifier does not start with 'catalog:'. */ export declare function parseCatalogProtocol(bareSpecifier: string): string | 'default' | null;