Skip to content

Instantly share code, notes, and snippets.

@bfredo123
bfredo123 / index.js
Created April 8, 2021 08:02
heap out of memory issue with excel4node
var excel = require('excel4node')
var workbook = new excel.Workbook({})
for (let s = 0; s < 1; s++) {
var sheet = workbook.addWorksheet('Contacts'+s)
for (let rowIndex = 1; rowIndex < 100000; rowIndex++) {
for (i = 0;i < 15; i++) {
sheet.cell(rowIndex, +i+1).string('coucou'+rowIndex+'-'+i)