/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).
/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).