writer

abstract var writer: REPLWriter?(source)

The function to invoke to format the output of each command before writing to output.

See also

https

://nodejs.org/dist/latest-v22.x/docs/api/repl.html#repl_customizing_repl_output