The writable.setDefaultEncoding() method sets the default encoding for a Writable stream.
writable.setDefaultEncoding()
encoding
Writable
The new default encoding
v0.11.15
The
writable.setDefaultEncoding()method sets the defaultencodingfor aWritablestream.