MCPcopy
hub / github.com/Kong/insomnia / writeMarkdownFile

Function writeMarkdownFile

packages/insomnia-inso/src/scripts/docs.ts:11–14  ·  view source on GitHub ↗
(fileName: string, content: string)

Source from the content-addressed store, hash-verified

9const DOCS_DIR = path.join(__dirname, `../reference/insomnia-inso/${majorMinor}`);
10
11function writeMarkdownFile(fileName: string, content: string): void {
12 const outputPath = path.join(DOCS_DIR, fileName);
13 fs.writeFileSync(outputPath, content);
14}
15
16function generateOptionsMarkdown(options: readonly commander.Option[], title: string): string {
17 return options.length

Callers 2

generateCommandMarkdownFunction · 0.85
generateDocumentationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected