Code
Hub
Trending
Following
Digest
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/nodejs/node
/ clearLine
Method
clearLine
lib/internal/debugger/inspect.js:179–186 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
177
}
178
179
clearLine() {
180
if
(this.stdout.isTTY) {
181
this.stdout.cursorTo(0);
182
this.stdout.clearLine(1);
183
}
else
{
184
this.stdout.write(
'\b'
);
185
}
186
}
187
188
print(text, appendNewline = false) {
189
this.clearLine();
Callers
1
print
Method · 0.95
Calls
2
cursorTo
Method · 0.80
write
Method · 0.45
Tested by
no test coverage detected