Code Complexity
v1.0.0Calculate cyclomatic and cognitive complexity for JavaScript/TypeScript functions
Calculates cyclomatic and cognitive complexity for JavaScript/TypeScript functions, helping you identify code that is hard to test and maintain.
How to use- →Paste JavaScript or TypeScript source code into the left panel and press Analyse to see per-function scores.
- →Each function is colour-coded: green (1–5) is simple, yellow (6–10) moderate, orange (11–20) complex, red (21+) very complex.
- →Try a preset from the example picker to see how simple, nested, and deeply branched code score differently.
Complexity analysis will appear here…