MCPcopy
hub / github.com/codeaashu/claude-code / getNpmSemver

Function getNpmSemver

src/utils/semver.ts:11–17  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9let _npmSemver: typeof import('semver') | undefined
10
11function getNpmSemver(): typeof import('semver') {
12 if (!_npmSemver) {
13 // eslint-disable-next-line @typescript-eslint/no-require-imports
14 _npmSemver = require('semver') as typeof import('semver')
15 }
16 return _npmSemver
17}
18
19export function gt(a: string, b: string): boolean {
20 if (typeof Bun !== 'undefined') {

Callers 6

gtFunction · 0.85
gteFunction · 0.85
ltFunction · 0.85
lteFunction · 0.85
satisfiesFunction · 0.85
orderFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected