I found this question more or less asked elsewhere, in less-than-clear language, but the answer was
"I doubt you have any reason to."
which doesn't really seem like a valid answer, considering if it's fundamentally possible (which it very well may not be), it would allow us to generate large (100GB+) files in parallel threads much faster. Now, if your data structure is something that could really be written in such a parallel way, you can probably just write 16 different files on your 16 threads and call it a day. That's probably what I'll be doing.
But just out of curiosity, let's say we really, really want all that data stored in one file. Can multiple
fs.createWriteStream(filePath)
be called from separate threads and successfully write to locations within the same file in parallel?
I couldn't find any info on this in the documentation, although I suspect the answer is simply "no."