MCPcopy Create free account
hub / github.com/npkgz/cli-progress / getWidth

Method getWidth

lib/terminal.js:153–156  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

151
152 // get terminal width
153 getWidth(){
154 // set max width to 80 in tty-mode and 200 in notty-mode
155 return this.stream.columns || (this.stream.isTTY ? 80 : 200);
156 }
157}
158
159module.exports = Terminal;

Callers 2

writeMethod · 0.95
renderMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected