nodeStream(type[, onUpdate])

Description : Return a nodejs Streams3 of the content in the asked type.


name type default description
type String nodebuffer only nodebuffer is currently supported.
onUpdate Function   an optional function called on each internal update with the metadata.

Metadata : see the metadata of async().

Returns : a nodejs Streams3.

Throws : Nothing.


.on('finish', function () {
    // JSZip generates a readable stream with a "end" event,
    // but is piped here in a writable stream which emits a "finish" event.
    console.log("text file written.");