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

Function satisfies

src/utils/semver.ts:47–52  ·  view source on GitHub ↗
(version: string, range: string)

Source from the content-addressed store, hash-verified

45}
46
47export function satisfies(version: string, range: string): boolean {
48 if (typeof Bun !== 'undefined') {
49 return Bun.semver.satisfies(version, range)
50 }
51 return getNpmSemver().satisfies(version, range, { loose: true })
52}
53
54export function order(a: string, b: string): -1 | 0 | 1 {
55 if (typeof Bun !== 'undefined') {

Callers 1

defaultBindings.tsFile · 0.85

Calls 1

getNpmSemverFunction · 0.85

Tested by

no test coverage detected