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

13 lines (9 loc) 325 B
"use strict"; const visitorKeys = require("./visitor-keys"); const analyzeScope = require("./analyze-scope"); const parse = require("./parse"); module.exports = function(code, options) { const ast = parse(code, options); const scopeManager = analyzeScope(ast, options); return { ast, scopeManager, visitorKeys }; };