envdiff ranks differences between two development environments

envdiff records an environment's , versions of 24 common development tools, , and PATH in a JSON file. After taking a snapshot on each machine, a comparison command lists their differences in the order most likely to explain a problem.

Missing tools come first, followed by version mismatches and , while less useful noise appears at the bottom. The command returns when it finds any difference, so it can also act as a CI gate that stops a build or deployment.

Before writing anything to disk, it masks likely secrets by checking both variable names and how random their values appear. It can be tried with `npx envdiffer snapshot -o mine.json`, and its is publicly available.

Key points

  • It records the , 24 tool versions, , and PATH in JSON.
  • It ranks missing tools above version mismatches and differences.
  • It returns for any difference, allowing automated build or deployment checks.
  • It masks likely secrets using patterns in variable names and the apparent randomness of values.
  • Run `npx envdiffer snapshot -o mine.json` to create an environment snapshot.
Read original