When I try to run my CG javascript or typescript puzzle solutions locally with node.js, it throws error, as readline() function is not defined.
How to make this work (preferably without having to modify the source code)? With some polyfills?
The node docs mention only a readline module with some async readline approach with different syntax, but not the simple readline() function my code needs.