So Im getting the input when someone types something in the console like this:
process.stdin.resume();
process.stdin.setEncoding('utf8');
process.stdin.on('data', (text) => {
//code
});
using node.js. But whenever you type something in console and press enter it puts what you typed in there and I want to disable that. How do I do that?
(Btw I got that code from another stackoverflow post bc I know nothing about process.stdin so thats why Im asking if this is straight forward )