MCPcopy Index your code
hub / github.com/angular/angular-cli / logStdout

Function logStdout

packages/angular/cli/src/package-managers/parsers.ts:22–33  ·  view source on GitHub ↗
(stdout: string, logger?: Logger)

Source from the content-addressed store, hash-verified

20const MAX_LOG_LENGTH = 1024;
21
22function logStdout(stdout: string, logger?: Logger): void {
23 if (!logger) {
24 return;
25 }
26
27 let output = stdout;
28 if (output.length > MAX_LOG_LENGTH) {
29 output = `${output.slice(0, MAX_LOG_LENGTH)}... (truncated)`;
30 }
31
32 logger.debug(` stdout:\n${output}`);
33}
34
35/**
36 * A generator function that parses a string containing JSONL (newline-delimited JSON)

Callers 10

parseNpmLikeDependenciesFunction · 0.85
parseNpmLikeManifestFunction · 0.85
parseNpmLikeMetadataFunction · 0.85
parseYarnClassicManifestFunction · 0.85
parseYarnClassicMetadataFunction · 0.85
parseNpmLikeErrorFunction · 0.85
parseYarnClassicErrorFunction · 0.85
parseBunDependenciesFunction · 0.85

Calls 1

debugMethod · 0.65

Tested by

no test coverage detected