Skip to content

Latest commit

 

History

History
32 lines (24 loc) · 931 Bytes

generate_internal_stream.md

File metadata and controls

32 lines (24 loc) · 931 Bytes
title layout section
generateInternalStream(options)
default
api

Generates the complete zip file with the internal stream implementation.

Returns : a StreamHelper.

Since: v3.0.0

Arguments

name type default description
options object the options to generate the zip file, see the options of generateAsync()

Metadata : see the metadata of generateAsync().

Examples

zip.generateInternalStream({type:"blob"}).accumulate(function callback(err, content) {
  if (err) {
    // handle error
  }
  // see FileSaver.js
}.then(function (data){
    saveAs(data, "hello.zip");
});