title: export array to csv Nodejs
body: <p>I'm trying to export an array of data to a CSV file in Nodejs. I'm using the NodeCSV module, but I just get errors every time I try to follow the examples and documentation. It prints a bunch of code and says stringifier has no method 'indexOf' when I try to use the stringifier and it says 'object is not a function' when I try</p>
  
  <pre><code>csv().from.array(results).to('/temp/users.csv')
  </code></pre>
  
  <p>It doesn't work if I take the () off csv either. Does anyone know how to do this or can point me to some good documentation?</p>