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

15 lines (14 loc) 355 B
{ "id": "non-empty-if-present", "evaluate": "non-empty-if-present-evaluate", "metadata": { "impact": "critical", "messages": { "pass": { "default": "Element does not have a value attribute", "has-label": "Element has a non-empty value attribute" }, "fail": "Element has a value attribute and the value attribute is empty" } } }