This module provides a low-level wrapper for the Node Stream API.
setEncoding :: forall w. Readable w -> Encoding -> Effect Unit
Where possible, you should try to use
onDataString instead of this
setDefaultEncoding :: forall r. Writable r -> Encoding -> Effect Unit
Set the default encoding used to write strings to the stream. This function
library, which already expects a default encoding to be set. It has no
effect on the behaviour of the
writeString function (because that
function ensures that the encoding is always supplied explicitly).