Compare two CSV files and report changed columns plus added, removed, and modified rows.
Both files are parsed, headers are compared as sets, and rows are matched by position or an optional key column. Common fields are compared as values and only a capped detail list is emitted.
Input1: id,name,email,role 1,Alice,alice@example.com,admin 2,Bob,bob@example.com,editor 3,Carol,carol@example.com,viewer Input2: id,name,email,role 1,Alice,alice@example.com,admin 2,Bob,bob@example.com,admin 4,Dave,dave@example.com,editor
Row Type Data Changes
--- -------- ------------------------------------------------------------------- ---------------------
1 modified {"id":"2","name":"Bob","email":"bob@example.com","role":"admin"} role
2 modified {"id":"4","name":"Dave","email":"dave@example.com","role":"editor"} id, name, email, role
Migration checks compare exports, QA reviews changed prices, and keyed customer reports find overnight additions.