UNPKG

code-complexity

Version:

Measure the churn/complexity score. Higher values mean hotspots where refactorings should happen.

19 lines (18 loc) 347 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); class Churn { path; changes; constructor(path) { this.path = path; this.changes = 0; } increment() { this.changes += 1; return this; } getValue() { return this.changes; } } exports.default = Churn;