MCPcopy Create free account
hub / github.com/dmno-dev/bumpy / isDefaultNpmRegistry

Function isDefaultNpmRegistry

packages/bumpy/src/core/github-release.ts:236–238  ·  view source on GitHub ↗

Whether a registry URL is the public npmjs.com registry (the default).

(registry?: string)

Source from the content-addressed store, hash-verified

234
235/** Whether a registry URL is the public npmjs.com registry (the default). */
236function isDefaultNpmRegistry(registry?: string): boolean {
237 return !registry || registryHost(registry) === DEFAULT_NPM_HOST;
238}
239
240/**
241 * Human-readable label for a publish target, accounting for the configured registry.

Callers 1

buildPublishUrlFunction · 0.85

Calls 1

registryHostFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…