Module
Node.StreamBuffer
- Package
- purescript-node-stream-buffers
- Repository
- cprussin/purescript-node-stream-buffers
Re-exports from Node.StreamBuffer.Effect
#STREAM_BUFFER Source
data STREAM_BUFFER :: Effect
The effect type for effects that create stream buffers.
Re-exports from Node.StreamBuffer.Readable
#readable Source
readable :: forall eff. Eff (sb :: STREAM_BUFFER | eff) (Readable () (sb :: STREAM_BUFFER | eff))
Creates a readable stream buffer.
#put Source
put :: forall eff r. Readable r (sb :: STREAM_BUFFER | eff) -> Encoding -> String -> Eff (sb :: STREAM_BUFFER | eff) Unit
Given a readable stream buffer, an encoding, and a contents string, returns an effect containing a write of the contents to the given buffer.
Re-exports from Node.StreamBuffer.Writable
#writable Source
writable :: forall eff. Eff (sb :: STREAM_BUFFER | eff) (Writable () (sb :: STREAM_BUFFER | eff))
Creates a writable stream buffer.
#contents Source
contents :: forall eff r. Encoding -> Writable r (sb :: STREAM_BUFFER | eff) -> Eff (sb :: STREAM_BUFFER | eff) String
Returns an effect containing the contents of a writable stream buffer, given an Encoding.