Closed as not planned
Description
What is the problem this feature will solve?
Currently one can write a large number of types to a file. However one cannot currently write an ArrayBuffer
to a file without wrapping it in a typed array.
It would be convenient to be able to write an ArrayBuffer
directly to a file if one is received from some library without having to wrap directly. (The fact this isn't possible is something I forget pretty much everytime I go to write an ArrayBuffer
).
What is the feature you are proposing to solve the problem?
I propose allowing fs.promises.writeFile("./some-file", someArrayBuffer)
to work when someArrayBuffer
is an ArrayBuffer
. Typed arrays and such are already supported, so this shouldn't be particularly complicated to implement.
What alternatives have you considered?
No response