MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / countLines

Function countLines

packages/plugins/openapi/src/sdk/parse.ts:51–55  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

49 specGuidance;
50
51const countLines = (text: string): number => {
52 let count = 1;
53 for (let pos = text.indexOf("\n"); pos !== -1; pos = text.indexOf("\n", pos + 1)) count += 1;
54 return count;
55};
56
57export interface SpecFetchCredentials {
58 readonly headers?: Record<string, string>;

Callers 1

parseSpecObjectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected