Check a barcode number
Checks the last digit of each UPC-A, EAN-13, EAN-8 or GTIN-14 number against its GS1 check digit, one number per line. It catches every single mistyped digit and most swapped neighbors, but not two neighbors 5 apart: 4006381333931 with 38 typed as 83 still passes. A number that fails gets the right check digit and the corrected number next to it.