1.0.1 • Published 3 years ago
luhn-algorthim-impl v1.0.1
LUHN-ALGORITHM-IMPL
Luhn-algorithm-impl is a Typescript/Javascript library for the verification of Credit Card, IMEI and French SIRET number.
Installation
Use the npm package manager to install Luhn-algorithm-impl.
npm i luhn-algorthim-impl
Usage
import { checkSumLuhn } from 'luhn-algorthim-impl';
# returns true
checkSumLuhn('972487086');
# returns false
checkSumLuhn('972-487-086');
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.