MCPcopy Create free account
hub / github.com/devcontainers/cli / toTerminalText

Function toTerminalText

src/spec-utils/log.ts:205–208  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

203}
204
205function toTerminalText(text: string) {
206 return colorize(text)
207 .replace(/\r?\n/g, '\r\n').replace(/(\r?\n)?$/, '\r\n');
208}
209
210function logEventToFileText(e: LogEvent, logLevel: LogLevel) {
211 if (!('level' in e) || e.level < logLevel) {

Callers 1

logEventToTerminalTextFunction · 0.85

Calls 1

colorizeFunction · 0.85

Tested by

no test coverage detected