MCPcopy Index your code
hub / github.com/nodejs/corepack / isSupportedPackageManagerLocator

Function isSupportedPackageManagerLocator

sources/corepackUtils.ts:120–122  ·  view source on GitHub ↗
(locator: Locator)

Source from the content-addressed store, hash-verified

118}
119
120export function isSupportedPackageManagerLocator(locator: Locator) {
121 return !URL.canParse(locator.reference);
122}
123
124function parseURLReference(locator: Locator) {
125 const {hash, href} = new URL(locator.reference);

Callers 1

installVersionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…