Express.js scanner
shadowaudit's Express.js scanner uses Babel AST parsing to extract route definitions from .js and .ts files. It's the most mature scanner — supporting route chaining, mount prefix reconciliation, and AST-based auth detection.
How it works
The scanner parses each .js/.ts file with @babel/parser (with TypeScript, JSX, and decorators plugins) and walks the AST looking for route definition patterns.
Detected patterns
Pattern 1 — Direct app methods
app.get('/api/users', getUsers);
app.post('/api/users', createUser);
app.put('/api/users/:id', updateUser);
app.delete('/api/users/:id', deleteUser);