{"version":"1.0","type":"rich","title":"Node command line read from input (hope I get this working)","description":"This example demonstrates a minimal interactive command-line interface in Node.js. It reads user input from standard input, echoes the entered text with a prompt prefix, and terminates when the user types “exit”. The code uses `process.openStdin()` to access the input stream, sets its encoding to UTF-8, and registers a data event handler via `stdin.on('data', ...)` to process each line of input. No external libraries are required; it relies solely on Node.js built-in process and stream APIs.","provider_name":"VizHub AI Studio","provider_url":"https://next.vizhub.com","html":"<iframe src=\"https://next.vizhub.com/viz/gist-1404012?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"1\"></iframe>","width":960,"height":500,"cache_age":3600}