1.0.8 • Published 4 years ago
luhn-mod-n-algorithm v1.0.8
luhn-mod-n-algorithm
Generates and calculates Luhn Mod N check values
Code based on https://en.wikipedia.org/wiki/Luhn_mod_N_algorithm with minimal modifications.
Installing
npm i luhn-mod-n-algorithmAPI
Parameters
| Parameter | Description |
|---|---|
| codePointFromCharacter | Function to obtain a code point from a character |
| characterFromCodePoint | Function to obtain a character from a code point |
| n | Base, radix or number of valid characters |