MCPcopy Index your code
hub / github.com/nodejs/node / ensureTrailingNewline

Function ensureTrailingNewline

lib/internal/debugger/inspect_helpers.js:60–62  ·  view source on GitHub ↗
(text)

Source from the content-addressed store, hash-verified

58}
59
60function ensureTrailingNewline(text) {
61 return StringPrototypeEndsWith(text, '\n') ? text : `${text}\n`;
62}
63
64function writeInspectUsageAndExit(invokedAs, message, exitCode) {
65 const code = exitCode ?? (message ? kInvalidCommandLineArgument : 0);

Callers 2

buildProbeTextReportFunction · 0.85
runProbeModeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected