(dir)
| 23 | const TIMEOUT_MS = 15000; |
| 24 | |
| 25 | function walk(dir) { |
| 26 | const out = []; |
| 27 | if (!existsSync(dir)) return out; |
| 28 | for (const name of readdirSync(dir)) { |
| 29 | const p = join(dir, name); |
| 30 | if (statSync(p).isDirectory()) out.push(...walk(p)); |
| 31 | else if (name.endsWith(".md") && !/^(README|index)\.md$/i.test(name)) out.push(p); |
| 32 | } |
| 33 | return out; |
| 34 | } |
| 35 | |
| 36 | async function probe(slug) { |
| 37 | const ctrl = new AbortController(); |
no outgoing calls
no test coverage detected