cdigit
Collection of check digit algorithms implemented in JavaScript
fast-luhn
A fast Luhn algorithm for validating credit cards
checkdigit
Module to calculate and validate check digits for redundancy checking, using f.ex. mod10 (luhn algorithm) or mod11.