MCPcopy Create free account
hub / github.com/DavidWells/analytics / renderExample

Function renderExample

packages/analytics-cli/src/commands/docs.js:132–139  ·  view source on GitHub ↗
(example)

Source from the content-addressed store, hash-verified

130}
131
132function renderExample(example) {
133 return `**Example**
134
135\`\`\`js
136${example.replace(/^\s+|\s+$/g, '')}
137\`\`\`
138`
139}
140
141function renderUsageExample(example, name, pkg) {
142 const code = `

Callers 1

formatExampleFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected