title: run terminal commands in node js
body: <p>I'm trying to write a web crawler program using <a href="https://github.com/ContentMine/quickscrape" rel="nofollow noreferrer">quickscrape</a>, after I type</p>
  <pre><code>quickscrape \
    --url https://peerj.com/articles/384 \
    --scraper journal-scrapers/scrapers/peerj.json \
    --output peerj-384
    --outformat bibjson
  </code></pre>
  <p>and hit the &quot;Enter&quot;
  in my terminal, the library will generate the result from the crawler and put them into a folder.</p>
  <p>Now I want to write a javascript progarm so that is will call these terminal commands for me, but I am not sure how to interact with terminal in node.js.</p>