I am using readFileSync() to read a file and get it as a buffer.
let buffer = fs.readFileSync(path);
But, actually, node can't open a file bigger than ~2 GB. Is there a way to enlarge the maximum allowed size of the buffer? Or an alternative that also could return me the file as a buffer?
Thx