node怎样向文件*.xlsx中追加内容
发布于 7 年前 作者 lovegnep 3867 次浏览 来自 问答

在网上搜索了多好,但都都用node-xlsx或者其它模块新建一个文件,不能做到在原来文件中追加内容,有做过的请指点。

4 回复

npm i exceljs --save

@realcrazysun 谢谢,看到我要的了。

Streaming I/O The File I/O documented above requires that an entire workbook is built up in memory before the file can be written. While convenient, it can limit the size of the document due to the amount of memory required.

A streaming writer (or reader) processes the workbook or worksheet data as it is generated, converting it into file form as it goes. Typically this is much more efficient on memory as the final memory footprint and even intermediate memory footprints are much more compact than with the document version, especially when you consider that the row and cell objects are disposed once they are committed.

回到顶部