MCPcopy Create free account
hub / github.com/code-pushup/cli / isSemver

Function isSemver

packages/utils/src/lib/semver.ts:15–17  ·  view source on GitHub ↗
(semverString = '')

Source from the content-addressed store, hash-verified

13}
14
15export function isSemver(semverString = ''): boolean {
16 return valid(normalizeSemver(semverString)) != null;
17}
18
19export function sortSemvers(semverStrings: string[]): string[] {
20 return semverStrings.map(normalizeSemver).filter(isSemver).sort(rcompare);

Callers 2

normalizeHashOptionsFunction · 0.90

Calls 1

normalizeSemverFunction · 0.85

Tested by

no test coverage detected