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

10 lines (7 loc) 232 B
'use strict' const Async = require('./lib/Async') const Sync = require('./lib/Sync') const unwrapSync = require('./lib/unwrapSync') exports.sync = () => new Sync() exports.async = () => new Async() exports.unwrapSync = unwrapSync