ng-luhn-validator
v1.0.15
Published
[Luhn algorithm](https://en.wikipedia.org/wiki/Luhn_algorithm) for typescript
Downloads
138
Readme
ng-luhn-validator
Luhn algorithm for typescript
Installation
npm i ng-luhn-validator
Usage
import { luhnValidate } from 'ng-luhn-validator';
luhnValidate('1234567890123456'); // return false
luhnValidate('5233756540063299'); // return true