Convert Uint8Array into hex string equivalent in node.js : <p>I am using node.js v4.5. Suppose I have this Uint8Array variable.</p>

<pre><code>var uint8 = new Uint8Array(4);
uint8[0] = 0x1f;
uint8[1] = 0x2f;
uint8[2] = 0x3f;
uint8[3] = 0x4f;
</code></pre>

<p>This array can be of any length but let's assume the length is 4. </p>

<p>I would like to have a function that that converts <code>uint8</code> into the hex string equivalent. </p>

<pre><code>var hex_string = convertUint8_to_hexStr(uint8);
//hex_string becomes "1f2f3f4f"
</code></pre>
