UNPKG

luhn-generator

Version:

A generator of numbers that passes the validation of Luhn algorithm or Luhn formula, also known as the 'modulus 10' or 'mod 10' algorithm

14 lines (11 loc) 502 B
Generic checks are evaluate functions that are used by multiple checks. They cannot be used directly by a rule (thus there is no check meatadata file associated with them) and must be used by another check passing in the required options. To use these checks, pass the check id (found in the metadata-function-map file) as the value of a checks `evaluate` property and pass any required options. ```json { "id": "my-check", "evaluate": "generic-check-id", "options": { "required": true } } ```