readLineOrNull

fun readLineOrNull(hideInput: Boolean): String?

Read a line of input from stdin.

This is similar to readlnOrNull, but is supported on NodeJS, and uses this terminal's interface, so it can be customized or mocked for testing.