EnvSync-LE

v2.5.0
io.github.nolindnaidoo/envsync-le Checked 1 day ago Published 1 month ago

Compare dotenv files and report which keys are missing or extra, by name only.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

compare_env_files

Compare dotenv files and report which keys are missing from which file, and which are extra relative to a template. Takes file contents directly. Only key NAMES are returned — never values — because a dotenv file is where credentials live and the answer does not need them. In "auto" mode the reference is the union of all keys, so nothing can be extra; "template" mode compares every file against one named template.

ParameterTypeDescription
files *arrayThe dotenv files to compare.
caseSensitivebooleanWhether key names are compared case-sensitively.
maxResultsintegerCap on returned key mismatches (default 500). meta.truncated reports whether any were dropped.
modestring"auto" compares against the union of all keys; "template" compares against one file.
templatePathstringWhich file is the template. Required when mode is "template".