Luhn This is Luhn algorithm to check the validity of card number How to use? const luhn = require("luhn-algorithm"); console.log(luhn("5379-4130-2690-0099")); // true console.log(luhn("4847-3529-8926-349")); // true console.log(luhn("1234-1234-349")); // false