Classify, match, and alert on CLI config keys — active, deprecated, expired, unknown.
Never drop detection of outdated keys.
Explore the docs »
Report Bug
·
Request Feature
CLIs that delete recognition of old config keys create silent mystery debt. This library loads a machine-readable key catalog, scans key=value config text, and emits structured findings plus human alert lines for deprecated, expired, and unknown keys.
Expired keys stay in the catalog forever and still produce alerts — they are not forgotten.
Formerly named config-key-sanitation; the old repository URL redirects here.
-
Runtime / language
-
D (Phobos
std.json)
-
-
Docs / standard
-
Packaging
import config_lifecycle;
import std.file : readText;
auto catalog = Catalog.loadJson(readText("fixtures/example-catalog.json"));
auto keys = parseKeyValueFile(readText("fixtures/sample.npmrc"));
foreach (f; catalog.classify(keys)) {
if (f.needsAlert)
stderr.writeln(f.alertLine);
}See CHANGELOG.adoc.
MIT — see LICENSE.