uhop/stream-csv-enhanced — pull request #1 by sballesteros (2013-10-26 16:02:15+00:00)
Title: add Ldjsoner to transform csv into line delimited JSON

A transform stream operating in object mode, to be used in a pipeline after Packer and allowing to transform a csv _with headers_ of this form:

```
var csvdata = [
['a', 'b', 'c'],
[1, 2, 3],
[4, 5, 6],
[null, 8, 9]
].map(function(x){return x.join(',')}).join('\n');
```

into a [JSON table](http://dataprotocols.org/json-table-schema/) of this form:

```
var expected = [
{ a: '1', b: '2', c: '3' },
{ a: '4', b: '5', c: '6' },
{ a: '', b: '8', c: '9' }
];
```

See ```tests/test_ldjsoner.js``` for a test and example.

Most other CSV parsers out there give this option and it is a handy format to consume the data.
If you accept it, I am happy to edit the README if it helps.

Thanks for stream-csv-enhanced !
Sebastien