node-csv-stream icon indicating copy to clipboard operation
node-csv-stream copied to clipboard

option to skip N header lines

Open jo-russ opened this issue 6 years ago • 1 comments

When there's more than one header line things get weird.

jo-russ avatar May 14 '18 14:05 jo-russ

I would like a similar option. CloudFront access logs are tsv files, but they start with these two lines and don't actually have a header:

#Version: 1.0
#Fields: date time x-edge-location sc-bytes c-ip cs-method cs(Host) cs-uri-stem sc-status cs(Referer) cs(User-Agent) cs-uri-query cs(Cookie) x-edge-result-type x-edge-request-i     d x-host-header cs-protocol cs-bytes time-taken x-forwarded-for ssl-protocol ssl-cipher x-edge-response-result-type cs-protocol-version fle-status fle-encrypted-fields

If I could say skip the first 2 lines, then I could use this to parse the tsv file.

bschlenk avatar Jun 03 '19 19:06 bschlenk