Yogesh Chavan
Jan 27, 2021

--

@st120005 Yes, it's possible.

You can specify the lines which starts with certain characters like * or | etc as a part of skipComments option to neatCSV like this:

neatCsv(data, { skipComments: "*" })

the above code will skip all lines which starts with *. Default is # so If any line starts with # and you want to skip it, you can use the following syntax:

neatCsv(data, { skipComments: true}).

Here's a CodeSandbox demo: https://codesandbox.io/s/csv-parser-skip-lines-3yxz2

--

--

Yogesh Chavan
Yogesh Chavan

No responses yet