node-csv-stream
node-csv-stream copied to clipboard
option to skip N header lines
When there's more than one header line things get weird.
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.