Right now I use readStream, and then do some modifications and then write the processed line into a .tmp file. After writing is done it is renamed to the original file name. The drawback it has to write even the unchanged lines which just makes it really slow
Is it possible to edit a file with the cursor position like (x, y) just those bytes without rewriting the entire file in NodeJS?