MCPcopy Create free account
hub / github.com/DIYgod/RSSHub / isRouteFile

Function isRouteFile

scripts/workflow/format-description.ts:267–274  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

265}
266
267function isRouteFile(filePath: string): boolean {
268 const abs = path.resolve(filePath);
269 if (!abs.startsWith(routesDir + path.sep)) {
270 return false;
271 }
272 const base = path.basename(abs);
273 return /\.tsx?$/.test(base) && !base.endsWith('.d.ts');
274}
275
276async function main() {
277 const started = performance.now();

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected