Module
Node.FS.Stream
- Package
- purescript-node-fs
- Repository
- purescript-node/purescript-node-fs
#createWriteStream Source
createWriteStream :: FilePath -> Effect (Writable ())
Create a Writable stream which writes data to the specified file, using the default options.
#fdCreateWriteStream Source
fdCreateWriteStream :: FileDescriptor -> Effect (Writable ())
Create a Writable stream which writes data to the specified file descriptor, using the default options.
#WriteStreamOptions Source
type WriteStreamOptions = { flags :: FileFlags, perms :: Perms }
#createWriteStreamWith Source
createWriteStreamWith :: WriteStreamOptions -> FilePath -> Effect (Writable ())
Like createWriteStream
, but allows you to pass options.
#fdCreateWriteStreamWith Source
fdCreateWriteStreamWith :: WriteStreamOptions -> FileDescriptor -> Effect (Writable ())
Like fdCreateWriteStream
, but allows you to pass options.
#createReadStream Source
createReadStream :: FilePath -> Effect (Readable ())
Create a Readable stream which reads data to the specified file, using the default options.
#fdCreateReadStream Source
fdCreateReadStream :: FileDescriptor -> Effect (Readable ())
Create a Readable stream which reads data to the specified file descriptor, using the default options.
#ReadStreamOptions Source
type ReadStreamOptions = { autoClose :: Boolean, flags :: FileFlags, perms :: Perms }
#createReadStreamWith Source
createReadStreamWith :: ReadStreamOptions -> FilePath -> Effect (Readable ())
Create a Readable stream which reads data from the specified file.
#fdCreateReadStreamWith Source
fdCreateReadStreamWith :: ReadStreamOptions -> FileDescriptor -> Effect (Readable ())
Create a Readable stream which reads data from the specified file descriptor.