title: Nodejs library / module for developing interactive CLI apps?
body: <p>been googling for this and searching stackoverflow, but am not coming across anything. I want to develop an interactive shell with node, and wondering on the best approach for this. Is there a library that anyone could recommend to use?</p>
  
  <p>I have written a library, and now want a CLI interface to interact with it, by 2 methods: running the app with parameters, or via interactive shell. e.g.</p>
  
  <pre><code>$ node myapp doSomething
  App Result: I did something
  $ node myapp cli
  Entering interactive mode...
  myapp&gt;
  myapp&gt; doSomething
  App Result: I did something
  myapp&gt;
  </code></pre>
  
  <p>Any suggestions?</p>