Skip to content

Replace header with nothing line failed on very large csv files #31

Description

@rklaeboe

/replacestream/index.js:36
var haystack = tail + buf.toString(options.encoding);
^
RangeError: Invalid string length

Simple replacements + with longer text fragments
worked OK on same file (3 million lines csv file).

Error occurred when trying to only remove first line.
replace .*\n with '' {limit : 1}
Also regex without /g failed but worked with /g
(Used striplines for this task instead).

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