UNPKG

cognitive-complexity-ts

Version:

This program analyses TypeScript and JavaScript code according to the [Cognitive Complexity metric](https://www.sonarsource.com/docs/CognitiveComplexity.pdf). It produces a JSON summary and a GUI for exploring the complexity of your codebase.

6 lines 227 B
import { addStyleSheet, element } from "../../framework.js"; addStyleSheet(import.meta.url); export function Score(score) { return element("p", { className: "score" }, "Score: " + score); } //# sourceMappingURL=Score.js.map