MCPcopy Create free account
hub / github.com/fmhy/edit / getDocsFiles

Function getDocsFiles

scripts/lint-markdown.js:9–20  ·  view source on GitHub ↗
(dir)

Source from the content-addressed store, hash-verified

7
8// Non-recursive scan of DOCS_DIR
9function getDocsFiles(dir) {
10 const files = fs.readdirSync(dir)
11 const mdFiles = []
12 files.forEach((file) => {
13 const filePath = path.join(dir, file)
14 const stat = fs.statSync(filePath)
15 if (!stat.isDirectory() && file.endsWith('.md')) {
16 mdFiles.push(filePath)
17 }
18 })
19 return mdFiles
20}
21
22const args = process.argv.slice(2)
23const files =

Callers 1

lint-markdown.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected