Closed
Description
I have this:
process.stdin.setRawMode(true);
but I cannot use it like so:
process.stdin.setRawMode(true).on('data' fn);
just curious if that is true and why that is. It could just be that the TypeScript typings are wrong.
Anyway, I would expect that process.stdin.setRawMode()
would return the same thing as process.stdin.setEncoding()
.