seal-stream-as-string
seal-stream-as-string transforms streams to strings.
Installation
$ npm install seal-stream-as-string
Quick start
First you need to add a reference to seal-stream-as-string within your application.
const StreamAsString = ;
Then use the write
function to add data to the stream. Once you are done, call end
. Afterwards, you may use the asString
function to get the stringified stream.
const streamAsString = ; streamAsString;streamAsString;streamAsString; console; // => 'foobar'
Alternatively, you may listen to the as-string
event. It is raised after the stream has been ended.
const streamAsString = ; streamAsString; streamAsString;streamAsString;streamAsString;
Running the build
To build this module use roboter.
$ bot