MCPcopy Create free account
hub / github.com/devaccuracy/ledgerforge / looksLikeNdjson

Function looksLikeNdjson

tests/loadtest/tools/dashboard/app.js:1364–1367  ·  view source on GitHub ↗
(text)

Source from the content-addressed store, hash-verified

1362}
1363
1364function looksLikeNdjson(text) {
1365 const firstLine = text.split(/\r?\n/, 1)[0];
1366 return firstLine.includes('"type"') && firstLine.includes('"Point"');
1367}
1368
1369function clamp01(value) {
1370 return value === null ? null : Math.min(1, Math.max(0, value));

Callers 1

parseUploadedFileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected