Can we stream write (json to xlsx) in sheet js? #3248

Open
opened 2024-11-06 14:29:11 +00:00 by Chetan11-dev · 2 comments

I want to express my heartfelt gratitude for the incredible work you do with SheetJS. Your tool has been a lifesaver, making it so much easier to create Excel files. Thank you for your dedication and effort.

I have a question, I didn't find an example that demonstrates how to create an .xlsx file from a stream of JavaScript objects. I wanted to know:

  • Is it possible to do this?
  • If so, how can it be done?
I want to express my heartfelt gratitude for the incredible work you do with SheetJS. Your tool has been a lifesaver, making it so much easier to create Excel files. Thank you for your dedication and effort. I have a question, I didn't find an example that demonstrates how to create an `.xlsx` file from a stream of JavaScript objects. I wanted to know: - Is it possible to do this? - If so, how can it be done?
Owner

Not currently. #3120 follow this issue.

Not currently. https://git.sheetjs.com/sheetjs/sheetjs/issues/3120 follow this issue.
Author

Do you know of any other library that does support it (nodejs)?
What I am trying to do is to stream write objects (millions of items) to an xlsx file like this

xlsxwriter = createXlsxStreamWriter('book.xlsx')
await streamReadFile((item)=>{
    // stream write a js object
    await xlsxwriter.write(item)
})

xlsxwriter.end()
Do you know of any other library that does support it (nodejs)? What I am trying to do is to stream write objects (millions of items) to an xlsx file like this ```js xlsxwriter = createXlsxStreamWriter('book.xlsx') await streamReadFile((item)=>{ // stream write a js object await xlsxwriter.write(item) }) xlsxwriter.end() ```
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: sheetjs/sheetjs#3248
No description provided.