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 (8 loc) 215 B
'use strict'; const onetime = require('onetime'); const signalExit = require('signal-exit'); module.exports = onetime(() => { signalExit(() => { process.stderr.write('\u001b[?25h'); }, {alwaysLast: true}); });