MCPcopy Create free account
hub / github.com/neplextech/vectorizer / parseInteger

Function parseInteger

cli/index.mjs:340–346  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

338}
339
340function parseInteger(value) {
341 const parsed = Number.parseInt(value, 10);
342 if (!Number.isFinite(parsed)) {
343 throw new Error(`Expected integer, received '${value}'`);
344 }
345 return parsed;
346}
347
348function parseNumber(value) {
349 const parsed = Number.parseFloat(value);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…