MCPcopy
hub / github.com/compodoc/compodoc / printStat

Function printStat

tools/ngd-graphs.js:277–299  ·  view source on GitHub ↗
(stdout)

Source from the content-addressed store, hash-verified

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
301let reg = /parsing/gm,
302 regStat = /(statistics)[\s\S]*-----/gm,

Callers 1

loopFunction · 0.70

Calls 2

matchMethod · 0.80
logMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…