MCPcopy Index your code
hub / github.com/banga/git-split-diffs / getWidth

Method getWidth

src/SpannedString.ts:181–183  ·  view source on GitHub ↗

* Returns the screen width of the string in columns, i.e. accounting for * characters that may occupy more than one character width in the terminal.

()

Source from the content-addressed store, hash-verified

179 * characters that may occupy more than one character width in the terminal.
180 */
181 getWidth(): number {
182 return wcwidth(this._string);
183 }
184
185 /**
186 * Returns the screen width per character.

Callers 1

fillWidthMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected