excel-builder
Version:
An easy way of building Excel files with javascript
35 lines (26 loc) • 1.06 kB
Markdown
title: "generateInternalStream(options)"
layout: default
section: api
__Description__ : Generates the complete zip file with the internal stream
implementation.
__Arguments__
name | type | default | description
--------------------|----------|---------|------------
options | object | | the options to generate the zip file, see [the options of `generateAsync()`]({{site.baseurl}}/documentation/api_jszip/generate_async.html)
__Metadata__ : see [the metadata of `generateAsync()`]({{site.baseurl}}/documentation/api_jszip/generate_async.html).
__Returns__ : a [StreamHelper]({{site.baseurl}}/documentation/api_streamhelper.html).
__Throws__ : Nothing.
__Example__
```js
zip.generateInternalStream({type:"blob"}).accumulate(function callback(err, content) {
if (err) {
// handle error
}
// see FileSaver.js
saveAs(content, "hello.zip");
}, function updateCallback(metadata) {
// print progression with metadata.percent and metadata.currentFile
});
```