max-mapper / csv-write-stream

A CSV encoder stream that produces properly escaped CSVs
BSD 2-Clause "Simplified" License
204 stars 37 forks source link

Array properties are failing #13

Closed finnp closed 9 years ago

finnp commented 9 years ago

When I update csv-write-stream in dat and go to the /api/csv endpoint with dat-npm like this;

-    "csv-write-stream": "~0.1.1",
+    "csv-write-stream": "^0.2.1",

I get the following error

/Users/finn/code/npm/dat/node_modules/csv-write-stream/index.js:81
  return '"'+cell.replace(/"/g, '""')+'"'
                  ^
TypeError: Object framework,server,tianma has no method 'replace'