MCPcopy Create free account
hub / github.com/ReactiveX/rxjs / visit

Function visit

scripts/check-package-docs.mjs:97–105  ·  view source on GitHub ↗
(relativeDirectory)

Source from the content-addressed store, hash-verified

95async function allPaths(root) {
96 const paths = [];
97 async function visit(relativeDirectory) {
98 const entries = await readdir(path.join(root, relativeDirectory), { withFileTypes: true });
99 for (const entry of entries) {
100 if (['.git', '.cache', '.tshy-build', 'dist', 'node_modules'].includes(entry.name)) continue;
101 const relativePath = path.posix.join(relativeDirectory, entry.name);
102 paths.push(relativePath);
103 if (entry.isDirectory()) await visit(relativePath);
104 }
105 }
106 await visit('');
107 return paths;
108}

Callers 7

allPathsFunction · 0.70
mapHeadings.jsFile · 0.50
linkFunction · 0.50
autoLinkCodeImplFunction · 0.50
h1-checker.jsFile · 0.50

Calls 1

includesMethod · 0.80

Tested by

no test coverage detected