title: How to use child-process-promise
body: <pre><code>var promise = require('child-process-promise').spawn;
  
  promise('some_command_producing_output')
      .then(function (result) {
          ...
      })
      .catch(function (err) {
          ...
      });
  </code></pre>
  <p>What I want is to add some processing after command produced output in stdout. So finally I want to create a function to use like this:</p>
  <pre><code>RunCommandAndProcess('some_command_producing_output')
      .then(function (result) {
          ...
      })
      .catch(function (err) {
          ...
      });
  </code></pre>
  <p>The function should use promise from child-process-promise, wait until successful result produced and return promise for processing data.</p>