title: How to write a pixel array to file/png with NodeJs
body: <p>I have an pixel array (RGBA values) like this</p>
  
  <pre><code>data = [
            255,    // R
            255,    // G
            255,    // B
            255,    // A
            0,      // R
            0,      // G
            0,      // B
            255,    // A
            ...
          ];
  </code></pre>
  
  <p>It is actually obtained somewhere in the process from a canvas with <code>getImageData</code>. Anyway, now in node I would like to write it to file as a png (jpg or gif is fine too) What would be the best tool to do this, given the array I've described above ?</p>