UNPKG

is-spaghetti-code

Version:

A simple npm package that detects characteristics of spaghetti code by analyzing JavaScript code snippets. It checks for deep nesting and long functions, giving you insights into your code's structure.

9 lines (7 loc) 192 B
declare function isSpaghettiCode(code: string): { isSpaghetti: boolean; maxNestingLevel: number; longFunctionCount: number; }; export = isSpaghettiCode; export default isSpaghettiCode;