MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / countLines

Function countLines

packages/code-map/src/parse.ts:342–344  ·  view source on GitHub ↗
(sourceCode: string)

Source from the content-addressed store, hash-verified

340}
341
342function countLines(sourceCode: string): number {
343 return (sourceCode.match(/\n/g)?.length ?? 0) + 1
344}
345
346function getPositiveIntegerEnv(name: string, fallback: number): number {
347 const raw = process.env[name]

Callers 1

parseTokensWithLimitsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected