title: Execute a command line binary with Node.js
body: <p>I am in the process of porting a CLI library from Ruby over to Node.js. In my code I execute several third party binaries when necessary. I am not sure how best to accomplish this in Node.</p>
  
  <p>Here's an example in Ruby where I call PrinceXML to convert a file to a PDF:</p>
  
  <pre><code>cmd = system("prince -v builds/pdf/book.html -o builds/pdf/book.pdf")
  </code></pre>
  
  <p>What is the equivalent code in Node?</p>