MCPcopy Create free account
hub / github.com/Noumena-Network/code / ensureTrailingNewline

Function ensureTrailingNewline

src/utils/ccshareResume.ts:269–271  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

267}
268
269function ensureTrailingNewline(value: string): string {
270 return value.endsWith('\n') ? value : `${value}\n`
271}
272
273function looksLikeJsonlTranscript(value: string): boolean {
274 const firstLine = value

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected