Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
132
function
renderExample(example) {
133
return
`**Example**
134
135
\`\`\`js
136
${example.replace(/^\s+|\s+$/g,
''
)}
137
\`\`\`
138
`
139
}
140
141
function
renderUsageExample(example, name, pkg) {
142
const
code = `
Callers
1
formatExample
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected