title: Node-red output a message to CSV
body: <p>For the past couple of days I have been trying and reading to get something very specific done in Node-Red: I want to send the (LoRa) message to a CSV.
  This CSV should contain the following items:</p>
  
  <ul>
  <li>topic </li>
  <li>date</li>
  <li>payload</li>
  </ul>
  
  <p>I can insert the date using a function node: </p>
  
  <pre><code>var str1 = Date();
  </code></pre>
  
  <p>I have been playing around with CSV node, but I can't get it to output comma separated values. All this has probably to do with my lack of javascript programming skills, which is why I turn to you.</p>
  
  <p>Can you help me out?</p>
  
  <p>Edit:
  I'm still looking for the answer, which has brought me the following:
  Function node: </p>
  
  <pre><code>var res = Date() + "," + msg.topic + "," + msg.payload; return [ { payload: res } ]; 
  </code></pre>
  
  <p>Output: </p>
  
  <pre><code>[{"col1":"Mon Oct 17 2016 17:10:20 GMT+0200 (CEST)","col2":"1/test/1","col3":"string1"}]
  </code></pre>
  
  <p>All I want now is to lose the extra information such as column names and [{}]</p>