MCPcopy
hub / github.com/exceljs/exceljs / constructor

Method constructor

lib/utils/zip-stream.js:11–23  ·  view source on GitHub ↗
(options)

Source from the content-addressed store, hash-verified

9// Packs streamed data into an output zip stream
10class ZipWriter extends events.EventEmitter {
11 constructor(options) {
12 super();
13 this.options = Object.assign(
14 {
15 type: 'nodebuffer',
16 compression: 'DEFLATE',
17 },
18 options
19 );
20
21 this.zip = new JSZip();
22 this.stream = new StreamBuf();
23 }
24
25 append(data, options) {
26 if (options.hasOwnProperty('base64') && options.base64) {

Callers

nothing calls this directly

Calls 1

assignMethod · 0.80

Tested by

no test coverage detected