Skip to content

__line #118

@bernardoadc

Description

@bernardoadc
  • Operating System: Windows 10
  • Node Version: v14.16.0
  • NPM Version: 6.14.11
  • etl Version: 0.6.12

Expected Behavior / Situation

.pipe(csv({ originalLine: false }))
/*
a;b;c            [
1;2;3   --->     {a:1, b:2, c:3},
4;5;6               {a:4, b:5, c:6},
                   ]
*/

Actual Behavior / Situation

.pipe(csv())
/*
a;b;c            [
1;2;3   --->     {a:1, b:2, c:3, __line: 2},
4;5;6               {a:4, b:5, c:6, __line: 3},
                   ]
*/

Modification Proposal

To have an option ("originalLine" in example) to inhibit the addition of "__line" property to the resulting objects. It's bad for SQL insert, for example.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions