Does anyone know how to set a path in excel4node's wb.write() function?

1.1k Views Asked by At

Below function is creating the excel file and saving it on my source folder.However i want to set a specific path where the file will only be saved on that specific path wb.write(${filename}.xlsx)

1

There are 1 best solutions below

0
JeremyMen On

You can just add the path as a parameter:

ex.

  return wb.write(`./report/excelReports/report-${month}.xlsx`)