MCPcopy Create free account
hub / github.com/denoland/std / parseNumber

Function parseNumber

semver/_shared.ts:190–194  ·  view source on GitHub ↗
(input: string, errorMessage: string)

Source from the content-addressed store, hash-verified

188}
189
190export function parseNumber(input: string, errorMessage: string) {
191 const number = Number(input);
192 if (!isValidNumber(number)) throw new TypeError(errorMessage);
193 return number;
194}
195
196export function isWildcardComparator(c: Comparator): boolean {
197 return (

Callers 1

parseFunction · 0.90

Calls 1

isValidNumberFunction · 0.85

Tested by

no test coverage detected