MCPcopy Create free account
hub / github.com/SethGammon/Citadel / appendJsonl

Function appendJsonl

scripts/test-dashboard.js:26–28  ·  view source on GitHub ↗
(filePath, entries)

Source from the content-addressed store, hash-verified

24}
25
26function appendJsonl(filePath, entries) {
27 write(filePath, entries.map((entry) => JSON.stringify(entry)).join('\n') + '\n');
28}
29
30assert.equal(relativeTime('2026-06-04T12:00:00.000Z', new Date('2026-06-04T12:00:30.000Z')), 'just now');
31assert.equal(relativeTime('2026-06-04T11:30:00.000Z', new Date('2026-06-04T12:00:00.000Z')), '30 min ago');

Callers 1

test-dashboard.jsFile · 0.70

Calls 1

writeFunction · 0.70

Tested by

no test coverage detected