{"version":3,"sources":["jsdelivr-header.js","/npm/node-loc@1.1.7/build/src/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;ACLA,aACA,SAAS,SAAS,GACd,IAAK,IAAI,KAAK,EAAQ,QAAQ,eAAe,KAAI,QAAQ,GAAK,EAAE,GACpE,CACA,OAAO,eAAe,QAAS,aAAc,CAAE,OAAO,IACtD,MAAM,MAAQ,QAAQ,SAChB,QAAU,QAAQ,aAClB,QAAU,QAAQ,WAClB,YAAc,QAAQ,eACtB,OAAS,QAAQ,UACjB,QAAU,QAAQ,WACxB,QACK,QAAQ,QAAQ,cAChB,QAAQ,eACR,YAAY,iBACZ,QAAO,IACR,MAAM,EAAO,IAAI,OAAO,QAAQ,GAAM,UACtC,QAAQ,IAAI,MAAM,QAAQ,KAAK,qBACjB,wBACE,EAAK,8BACF,OAAO,EAAK,MAAM,+BACnB,OAAO,EAAK,MAAM,iCACf,OAAO,EAAK,MAAM,kBACpC,IAEP,QACK,QAAQ,iBACR,YAAY,qCACZ,QAAO,IACR,MAAM,KAAE,EAAI,UAAE,GAAc,IAAI,YAAY,OAAO,GAAS,UAC5D,QAAQ,IAAI,MAAM,QAAQ,KAAK,4BACV,OAAO,EAAK,iCACb,OAAO,EAAK,mCACT,OAAO,EAAK,yCACT,OAAO,KAAK,GAAW,KAAI,GAC1C,OAAO,QAAU,OAAO,EAAU,QAC1C,KAAK,OAAO,IAEnB,QAAQ,MAAM,QAAQ,MACtB,SAAS,QAAQ,WACjB,SAAS,QAAQ,gBACjB,SAAS,QAAQ","file":"/npm/node-loc@1.1.7/build/src/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/node-loc@1.1.7/build/src/index.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","#!/usr/bin/env node\n\"use strict\";\nfunction __export(m) {\n    for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];\n}\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst chalk = require(\"chalk\");\nconst program = require(\"commander\");\nconst process = require(\"process\");\nconst directory_1 = require(\"./directory\");\nconst file_1 = require(\"./file\");\nconst utils_1 = require(\"./utils\");\nprogram\n    .version(utils_1.getVersion())\n    .command('file <path>')\n    .description('detect a file')\n    .action(path => {\n    const info = new file_1.LocFile(path).getInfo();\n    console.log(chalk.default.cyan(`\n      path: \\t\\t${path}\n      language: \\t${info.lang}\n      total lines: \\t${String(info.lines.total)}\n      code lines: \\t${String(info.lines.code)}\n      comment lines: \\t${String(info.lines.comment)}\n    `));\n});\nprogram\n    .command('dir <pattern>')\n    .description('detect a directory with a pattern')\n    .action(pattern => {\n    const { info, languages } = new directory_1.LocDir(pattern).getInfo();\n    console.log(chalk.default.cyan(`\n      \\ttotal lines: \\t${String(info.total)}\n      \\tcode lines: \\t${String(info.code)}\n      \\tcomment lines: \\t${String(info.comment)}\n      \\t--------------------${Object.keys(languages).map(key => {\n        return `\\n\\t${key} \\t ${String(languages[key])}`;\n    }).join('')}`));\n});\nprogram.parse(process.argv);\n__export(require(\"./file\"));\n__export(require(\"./directory\"));\n__export(require(\"./languages\"));\n"]}