summarizeLifecycle
function summarizeLifecycle(flags, options?): LifecycleSummary;Defined in: lifecycle.ts:151
Summarize lifecycle health across many flags — counts plus a 0–100 health score (the share of active flags that are not stale).
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
flags |
Flag[] |
options? |
StalenessOptions |
Returns
Section titled “Returns”Example
Section titled “Example”import { summarizeLifecycle } from "@xtandard/flags";
const { stale, healthScore } = summarizeLifecycle(flags);