MCPcopy Create free account
hub / github.com/sourcebot-dev/sourcebot / prettyPrint

Function prettyPrint

packages/web/tools/globToRegexpPlayground.ts:99–104  ·  view source on GitHub ↗
(example: SearchInput)

Source from the content-addressed store, hash-verified

97console.log('-'.repeat(col1 + col2 + 50));
98
99function prettyPrint(example: SearchInput): string {
100 const fields = Object.entries(example)
101 .map(([k, v]) => `${k}: '${v}'`)
102 .join(', ');
103 return `{ ${fields} }`;
104}
105
106for (const example of examples) {
107 const input = prettyPrint(example);

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected