MCPcopy Index your code
hub / github.com/resend/react-email / isInteractiveStream

Function isInteractiveStream

packages/react-email/src/cli/utils/spinner.ts:59–64  ·  view source on GitHub ↗
(stream: NodeJS.WriteStream)

Source from the content-addressed store, hash-verified

57// logs, files, pipes) every frame would otherwise be appended verbatim,
58// spamming the output. See https://github.com/resend/react-email/issues/...
59const isInteractiveStream = (stream: NodeJS.WriteStream): boolean => {
60 if (!stream.isTTY) return false;
61 if (process.env.TERM === 'dumb') return false;
62 if (process.env.CI) return false;
63 return true;
64};
65
66class NonInteractiveSpinner implements Spinner {
67 running = false;

Callers 1

createSpinnerFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected