NodeJS. Child_process.spawn. Handle process' input prompt
问题 I'm currently working on my web interface for git. Accessing git itself by child_process.spawn. Everything is fine while there is simple "command -> response" mechanism, but I cannot understand what should I do with command prompts ( git fetch asks for password for example). Hypothetically there is some event fired, but I don't know what to listen to. All I see is " git_user@myserver's password: _ " in command line where node.js process itself is running. It would be great to redirect this