title: How to use Papa Parse for javascript csv parsing
body: <p>I looked at their API but didn't have any success with it.</p>
  
  <p>I'm trying to parse some csv files that are being sent to the client when he enters the server.</p>
  
  <p>I tried this code:</p>
  
  <pre><code>// Parse local CSV file
  Papa.parse("data/premier league/14-15s.csv", {
      complete: function(results) {
          console.log("Finished:", results.data);
      }
  });
  </code></pre>
  
  <p>which didn't work. It gives the following output:</p>
  
  <pre><code>Finished: [Array[1]]0: Array[1]0: "data/premier league/14-15s.csv"length: 1__proto__: Array[0]length: 1__proto__: Array[0]concat: function concat() { [native code] }constructor: function Array() { [native code] }entries: function entries() { [native code] }every: function every() { [native code] }filter: function filter() { [native code] }forEach: function forEach() { [native code] }indexOf: function indexOf() { [native code] }join: function join() { [native code] }keys: function keys() { [native code] }lastIndexOf: function lastIndexOf() { [native code] }length: 0map: function map() { [native code] }pop: function pop() { [native code] }push: function push() { [native code] }reduce: function reduce() { [native code] }reduceRight: function reduceRight() { [native code] }reverse: function reverse() { [native code] }shift: function shift() { [native code] }slice: function slice() { [native code] }some: function some() { [native code] }sort: function sort() { [native code] }splice: function splice() { [native code] }toLocaleString: function toLocaleString() { [native code] }toString: function toString() { [native code] }unshift: function unshift() { [native code] }Symbol(Symbol.iterator): function ArrayValues() { [native code] }Symbol(Symbol.unscopables): Object__proto__: Object
  </code></pre>
  
  <p>where is the csv??</p>