title: raw_input alternative for node.js
body: <p>I am creating a server application and I would like to be able to write commands like <code>start server</code>, <code>stop server</code>, <code>broadcast("clients","Hello")</code> in to my application but I can't figure out how to do it in node.</p>
  
  <p>I do know how it would look inside python.</p>
  
  <pre><code>while on == 1:
      cmd = raw_input("user&gt; ")
      if cmd == "start server":
          startserver()
      elif cmd == "stop server":
          stopserver()
          on = 0
  </code></pre>
  
  <p>I have seen some npm modules for this but they require me to write arguments, I want to make this a console type application.</p>
  
  <p>Thanks</p>