1.0.1 • Published 3 years ago

luhn-algorthim-impl v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

LUHN-ALGORITHM-IMPL

Luhn-algorithm-impl is a Typescript/Javascript library for the verification of Credit Card, IMEI and French SIRET number.

Luhn Algorithm

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.

License

MIT

1.0.1

3 years ago

1.0.0

3 years ago