MCPcopy
hub / github.com/prisma/prisma / isInteractive

Function isInteractive

packages/internals/src/utils/isInteractive.ts:8–10  ·  view source on GitHub ↗
({ stream = process.stdin }: Options = {})

Source from the content-addressed store, hash-verified

6 stream?: NodeJS.ReadStream
7}
8export const isInteractive = ({ stream = process.stdin }: Options = {}): boolean => {
9 return Boolean(stream && stream.isTTY && process.env.TERM !== 'dumb')
10}

Callers 4

canPromptFunction · 0.90
parseMethod · 0.90
handleNpsSurveyFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected