Skip to content

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).

Parameter Type
flags Flag[]
options? StalenessOptions

LifecycleSummary

import { summarizeLifecycle } from "@xtandard/flags";
const { stale, healthScore } = summarizeLifecycle(flags);