SheetJS / js-cfb

:floppy_disk: OLE File Container Format
https://sheetjs.com/cfb-editor
Apache License 2.0
69 stars 15 forks source link

Able to remove Seed file item #22

Open vlagnar opened 1 year ago

vlagnar commented 1 year ago

This might be a good item to add to allow for the file to be created without the seed.

function _write(cfb, options) { var _opts = options || {}; / MAD is order-sensitive, skip rebuild and sort / if(_opts.fileType == 'mad') return write_mad(cfb, _opts); rebuild_cfb(cfb); if (_opts.noseed) cfb_del(cfb, "/\u0001Sh33tJ5"); <--------------- Added to allow for the file item not to be created!!!! switch(_opts.fileType) { case 'zip': return write_zip(cfb, _opts); //case 'mad': return write_mad(cfb, _opts); }