Module

Node.FS.Stream

#createWriteStream

createWriteStream :: FilePath -> Effect (Writable ())

Create a Writable stream which writes data to the specified file, using the default options.

#fdCreateWriteStream

fdCreateWriteStream :: FileDescriptor -> Effect (Writable ())

Create a Writable stream which writes data to the specified file descriptor, using the default options.

#WriteStreamOptions

type WriteStreamOptions = { flags :: FileFlags, perms :: Perms }

#defaultWriteStreamOptions

#createWriteStreamWith

createWriteStreamWith :: WriteStreamOptions -> FilePath -> Effect (Writable ())

Like createWriteStream, but allows you to pass options.

#fdCreateWriteStreamWith

fdCreateWriteStreamWith :: WriteStreamOptions -> FileDescriptor -> Effect (Writable ())

Like fdCreateWriteStream, but allows you to pass options.

#createReadStream

createReadStream :: FilePath -> Effect (Readable ())

Create a Readable stream which reads data to the specified file, using the default options.

#fdCreateReadStream

fdCreateReadStream :: FileDescriptor -> Effect (Readable ())

Create a Readable stream which reads data to the specified file descriptor, using the default options.

#ReadStreamOptions

type ReadStreamOptions = { autoClose :: Boolean, flags :: FileFlags, perms :: Perms }

#defaultReadStreamOptions

#createReadStreamWith

createReadStreamWith :: ReadStreamOptions -> FilePath -> Effect (Readable ())

Create a Readable stream which reads data from the specified file.

#fdCreateReadStreamWith

fdCreateReadStreamWith :: ReadStreamOptions -> FileDescriptor -> Effect (Readable ())

Create a Readable stream which reads data from the specified file descriptor.

Modules