pipe
The readable.pipe() method attaches a Writable stream to the readable, causing it to switch into flowing mode.
Data is read from the Readable source and passed to the supplied Writable destination. The destination is generally a Writable stream, but may be any object that implements the Writable stream interface.
The options argument is an optional object that may contain the following properties:
end- A boolean that specifies whether or not thedestinationshould be automatically closed when thesourceends. Default:true.
This method variant takes only a destination; see other variants for additional options.
Parameters
The destination for writing data.
The readable.pipe() method attaches a Writable stream to the readable, causing it to switch into flowing mode.
Data is read from the Readable source and passed to the supplied Writable destination. The destination is generally a Writable stream, but may be any object that implements the Writable stream interface.
The options argument is an optional object that may contain the following properties:
end- A boolean that specifies whether or not thedestinationshould be automatically closed when thesourceends. Default:true.
This method variant takes a destination and options, expressed as a guest Value.
Parameters
The destination for writing data.
The options for the pipe operation.
The readable.pipe() method attaches a Writable stream to the readable, causing it to switch into flowing mode.
Data is read from the Readable source and passed to the supplied Writable destination. The destination is generally a Writable stream, but may be any object that implements the Writable stream interface.
The options argument is an optional object that may contain the following properties:
end- A boolean that specifies whether or not thedestinationshould be automatically closed when thesourceends. Default:true.
This method variant takes a destination and options, expressed as a ReadablePipeOptions.
Parameters
The destination for writing data.
The options for the pipe operation.