1.0.1 • Published 2 years ago

luhn-algorithm v1.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

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
1.0.1

2 years ago

1.0.0

2 years ago