Relative Content

Tag Archive for node.jswindowsconsole

Writing to `CONOUT$` on Windows for node.js 22

I am trying to fix a node.js package that writes directly to the console (/dev/tty in Unix-likes) in the case of Windows. It’s using some internal bindings, sadly, which means it breaks with different Node.js versions, but I am able to get it working with node 18 and 20: