MCPcopy Create free account
hub / github.com/banga/git-split-diffs / iterWithNewlines

Function iterWithNewlines

src/iterWithNewlines.ts:4–11  ·  view source on GitHub ↗
(
    context: Context,
    lines: AsyncIterable<string>
)

Source from the content-addressed store, hash-verified

2import { Context } from './context';
3
4export async function* iterWithNewlines(
5 context: Context,
6 lines: AsyncIterable<string>
7) {
8 for await (const line of lines) {
9 yield line + os.EOL;
10 }
11}

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected