title: Convert Buffer to integer in JavaScript
body: <p>I get this buffer from my serial port: </p>
  
  <pre><code>&lt;Buffer 04 02 08 dc&gt;
  </code></pre>
  
  <p>The 2nd byte says how many bytes do I need to parse my from response data. So I need to parse these two bytes <code>08 dc</code>, and convert them to <code>long unsigned</code>.</p>
  
  <p>How do I do it in JavaScript on a Node.js server?</p>