title: What Node Module provides a CLI prompt?
body: <p>I have been searching far and wide for a node module that provides a REPL-like CLI prompt interface for a Node app. </p>
  
  <p>What I am looking for is kind of a hybrid between <a href="https://www.npmjs.com/package/inquirer" rel="nofollow">inquirer</a> or <a href="https://www.npmjs.com/package/prompt" rel="nofollow">prompt</a>, and <a href="https://www.npmjs.com/package/commander#coercion" rel="nofollow">commander</a>.</p>
  
  <p>Node provides a <a href="http://derickbailey.com/2014/07/02/build-your-own-app-specific-repl-for-your-nodejs-app/" rel="nofollow">built-in REPL module</a>, however this just exposes the raw javascript of your application. I want to built a virtual interface for an application.</p>
  
  <p>Example, supposing you run <code>node server.js</code>, you would get a prompt:</p>
  
  <pre><code>server:~$
  </code></pre>
  
  <p>This would behave like a basic unix prompt, in your own virtual context. Pressing <code>enter</code>:</p>
  
  <pre><code>server:~$
  server:~$
  </code></pre>
  
  <p>Or <code>help</code>:</p>
  
  <pre><code>server:~$ help
  
  Commands:
  
  debug [setting]   Enables or disables debugging.
  show stats        Displays live stats for your web server.
  
  server:~$
  </code></pre>
  
  <p>And you could execute custom commands:</p>
  
  <pre><code>server:~$ debug on -v 7
  Debugging turned on with a verbosity of 7
  ... live logging ...
  </code></pre>
  
  <p>Any idea of what NPM modules handle this?</p>
  
  <hr>
  
  <h3>Update 9 months later</h3>
  
  <p>Due to nothing matching my needs, I ended up building and publishing <a href="https://github.com/dthree/vorpal" rel="nofollow">Vorpal</a>, a framework for building Interactive CLIs in Node.</p>