| 275 | }); |
| 276 | }, |
| 277 | printStat = function(stdout) { |
| 278 | let statsRaw = stdout.match(regStat), |
| 279 | stats, |
| 280 | statModules, |
| 281 | statComponents; |
| 282 | |
| 283 | if (statsRaw && statsRaw.length > 0) { |
| 284 | stats = statsRaw[0]; |
| 285 | statModules = stats.match(regStatModules); |
| 286 | statComponents = stats.match(regStatComponents); |
| 287 | |
| 288 | console.log(` ${stdout.match(reg).length} files`); |
| 289 | console.log(''); |
| 290 | if (statModules) { |
| 291 | statModules = statModules[2]; |
| 292 | console.log(` ${statModules} modules`); |
| 293 | } |
| 294 | if (statComponents) { |
| 295 | statComponents = statComponents[2]; |
| 296 | console.log(` ${statComponents} components`); |
| 297 | } |
| 298 | } |
| 299 | }; |
| 300 | |
| 301 | let reg = /parsing/gm, |
| 302 | regStat = /(statistics)[\s\S]*-----/gm, |