title: Getting data from fulfilled Q promise object in node REPL
body: <p>Consider this simple Q promise object:</p>
  
  <pre><code>nesh&gt; var p = functionThatReturnsPromise();
  </code></pre>
  
  <p>The REPL is kind enough to output the promise's state and value if I go:</p>
  
  <pre><code>nesh&gt; p
  { state: 'fulfilled',
    value: 
     {
       // (data properties)
     }
  }
  </code></pre>
  
  <p>Suppose I indeed waited for the promise to fulfill, I can't get the value nor the state directly by <code>p.value</code> or <code>p.state</code>.</p>
  
  <p>I can do something like:</p>
  
  <pre><code>nesh&gt; var data
  undefined
  nesh&gt; p.then(function(_data) { data = _data })
  </code></pre>
  
  <p>yet it feels clumsy and uncomfortable for fluent REPL workflow.</p>
  
  <p>Any ideas?</p>