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) 233 B
"use strict"; const resolve = require("resolve"); const eslintBase = require.resolve("eslint"); module.exports = function requireFromESLint(id) { const path = resolve.sync(id, { basedir: eslintBase }); return require(path); };