If data is a plain object, it must have an own (not inherited) toStringfunction property.
data
toString
The mode option only affects the newly created file. See open for more details.
mode
For detailed information, see the documentation of the asynchronous version of this API: writeFile.
filename or file descriptor
Optional
If
data
is a plain object, it must have an own (not inherited)toString
function property.The
mode
option only affects the newly created file. See open for more details.For detailed information, see the documentation of the asynchronous version of this API: writeFile.