MCPcopy
hub / github.com/npm/node-semver / compare

Function compare

functions/compare.js:4–5  ·  view source on GitHub ↗
(a, b, loose)

Source from the content-addressed store, hash-verified

2
3const SemVer = require('../classes/semver')
4const compare = (a, b, loose) =>
5 new SemVer(a, loose).compare(new SemVer(b, loose))
6
7module.exports = compare

Callers 13

compare.jsFile · 0.85
gtFunction · 0.85
gteFunction · 0.85
lteFunction · 0.85
eqFunction · 0.85
neqFunction · 0.85
ltFunction · 0.85
compareLooseFunction · 0.85
rcompareFunction · 0.85
simplify.jsFile · 0.85
simpleSubsetFunction · 0.85
higherGTFunction · 0.85

Calls 1

compareMethod · 0.80

Tested by

no test coverage detected