MCPcopy Create free account
hub / github.com/brillout/react-streaming / getTerminalWidth

Function getTerminalWidth

src/utils/debug.ts:112–117  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

110}
111
112function getTerminalWidth(): number | undefined {
113 // https://stackoverflow.com/questions/30335637/get-width-of-terminal-in-node-js/30335724#30335724
114 return (
115 (typeof process !== 'undefined' && typeof process.stdout !== 'undefined' && process.stdout.columns) || undefined
116 )
117}

Callers 1

padFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…