{
  "id": "task_libraries:excel/javascript",
  "path": "/exapedia/javascript-excel-libraries",
  "template": {
    "id": "task_libraries",
    "version": 4
  },
  "title": "JavaScript Excel workbook libraries",
  "answer": [
    {
      "t": "text",
      "text": "JavaScript Excel libraries read and write spreadsheet workbooks such as XLSX files in browsers and Node.js. Most of these libraries read the formula results stored in a workbook rather than calculating them. These libraries produce the reports, data exports, and import templates that business apps exchange as spreadsheets."
    }
  ],
  "breadcrumb": [
    {
      "label": "Tools"
    },
    {
      "label": "JavaScript Excel workbook libraries"
    }
  ],
  "sections": [
    {
      "id": "libraries_popularity",
      "anchor": "popularity",
      "heading": "Popularity",
      "blocks": [
        {
          "b": "table",
          "columns": [
            "Library",
            "Monthly downloads",
            "Stars",
            "Last release",
            "License"
          ],
          "rows": [
            [
              [
                {
                  "t": "link",
                  "href": "#exceljs",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F145"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F146"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F152"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F149"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F147"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#sheetjs-ce",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F160"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F161"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F167"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F164"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F162"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#read-excel-file",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F176"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F177"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F183"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F180"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F178"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#write-excel-file",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F192"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F193"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F201"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F196"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F194"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#xlsx-js-style",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F210"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F211"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F219"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F214"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F212"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#node-xlsx",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F227"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F228"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F236"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F231"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F229"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#xlsx-populate",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F244"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F245"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F251"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F248"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F246"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#excelfournode",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F260"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F261"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F269"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F264"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F262"
                }
              ]
            ]
          ],
          "variant": "pop",
          "caption": [
            {
              "t": "text",
              "text": "Downloads: "
            },
            {
              "t": "text",
              "text": "npm"
            },
            {
              "t": "text",
              "text": ", last thirty days. Stars and releases: GitHub. Amber: no release in over a year."
            }
          ]
        }
      ],
      "note": [
        {
          "t": "link",
          "href": "#exceljs",
          "label": [
            {
              "t": "fact",
              "fact": "F145"
            }
          ]
        },
        {
          "t": "text",
          "text": " has the most monthly downloads in this comparison, at "
        },
        {
          "t": "fact",
          "fact": "F146"
        },
        {
          "t": "text",
          "text": "."
        }
      ]
    },
    {
      "id": "libraries_capabilities",
      "anchor": "capabilities",
      "heading": "Capabilities",
      "blocks": [
        {
          "b": "table",
          "columns": [
            "Library",
            "Read existing XLSX",
            "Write XLSX"
          ],
          "rows": [
            [
              [
                {
                  "t": "link",
                  "href": "#exceljs",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F145"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F153"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F154"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#sheetjs-ce",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F160"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F168"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F169"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#read-excel-file",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F176"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F184"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F185"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#write-excel-file",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F192"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F202"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F203"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#xlsx-js-style",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F210"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F220"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F221"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#node-xlsx",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F227"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F237"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F238"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#xlsx-populate",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F244"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F252"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F253"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#excelfournode",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F260"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F270"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F271"
                }
              ]
            ]
          ],
          "variant": "cap"
        }
      ]
    },
    {
      "id": "libraries_entries",
      "anchor": "libraries",
      "heading": "Libraries",
      "blocks": [
        {
          "b": "entry",
          "anchor": "exceljs",
          "name": [
            {
              "t": "fact",
              "fact": "F145"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/exceljs/exceljs"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/exceljs"
            },
            {
              "label": "Docs",
              "href": "https://github.com/exceljs/exceljs#readme"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F12"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F146"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F152"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F148"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F147"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://github.com/exceljs/exceljs#readme",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F145"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F13"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F14"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F15"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F16"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F17"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F18"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F19"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F20"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F158"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F159"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/wonderwhy-er/DesktopCommanderMCP",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F158"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "javascript",
              "code": "async editRange(path: string, range: string, content: any, options?: Record<string, any>): Promise<EditResult> {\n        // Verify file exists and check size\n        try {\n            await this.checkFileSize(path);\n        } catch (error) {\n            if ((error as any).code === 'ENOENT' ||\n                (error instanceof Error && error.message.includes('ENOENT'))) {\n                throw new Error(`File not found: ${path}`);\n            }\n            throw error;\n        }\n\n        // Validate content\n        if (!Array.isArray(content)) {\n            throw new Error('Content must be a 2D array for range editing');\n        }\n\n        // Parse range: \"Sheet1!A1:C10\" or \"Sheet1\"\n        const [sheetName, cellRange] = this.parseRange(range);\n\n        const workbook = await newWorkbook();\n        await workbook.xlsx.readFile(path);\n\n        // Get or create sheet\n        let worksheet = workbook.getWorksheet(sheetName);\n        if (!worksheet) {\n            worksheet = workbook.addWorksheet(sheetName);\n        }\n\n        if (cellRange) {\n            // Write to specific range\n            const { startRow, startCol, endRow, endCol } = this.parseCellRange(cellRange);\n\n            // A FROM:TO range bounds the write: content that doesn't fit is refused\n            // before any cell changes, so no cell outside the range is overwritten\n            if (endRow !== undefined && endCol !== undefined) {\n                const rows = content.length;\n                const columns = Math.max(0, ...content.map((row: unknown) => Array.isArray(row) ? row.length : 0));\n                const rangeRows = endRow - startRow + 1;\n                const rangeColumns = endCol - startCol + 1;\n                if (rows > rangeRows || columns > rangeColumns) {\n                    throw new Error(\n                        `Content has ${rows} row(s) and ${columns} column(s) but range ${cellRange} holds ` +\n                        `${rangeRows} row(s) and ${rangeColumns} column(s); nothing was written`\n                    );\n                }\n            }\n\n            for (let r = 0; r < content.length; r++) {\n                const rowData = content[r];\n                if (!Array.isArray(rowData)) continue;\n\n                for (let c = 0; c < rowData.length; c++) {\n                    const cell = worksheet.getCell(startRow + r, startCol + c);\n                    const value = rowData[c];\n\n                    if (typeof value === 'string' && value.startsWith('=')) {\n                        cell.value = { formula: value.substring(1) };\n                    } else {\n                        cell.value = value;\n                    }\n                }\n            }\n        } else {\n            // Replace entire sheet content\n            // Clear existing data\n            worksheet.eachRow((row, rowNumber) => {\n                row.eachCell((cell) => {\n                    cell.value = null;\n                });\n            });\n\n            // Write new data\n            for (let r = 0; r < content.length; r++) {\n                const rowData = content[r];\n                if (!Array.isArray(rowData)) continue;\n\n                const row = worksheet.getRow(r + 1);\n                for (let c = 0; c < rowData.length; c++) {\n                    const value = rowData[c];\n                    if (typeof value === 'string' && value.startsWith('=')) {\n                        row.getCell(c + 1).value = { formula: value.substring(1) };\n                    } else {\n                        row.getCell(c + 1).value = value;\n                    }\n                }\n                row.commit();\n            }\n        }\n\n        await workbook.xlsx.writeFile(path);\n\n        return { success: true, editsApplied: 1 };\n    }\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/wonderwhy-er/DesktopCommanderMCP/blob/9a101b17e44577f0baefa4c7120f087881c5cc56/src/utils/files/excel.ts#L174-L267",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F157"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=JavaScript%20TypeScript%20applications%20using%20exceljs%20to%20read%2C%20build%2C%20style%20or%20export%20Excel%20workbooks&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F145"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "javascript",
              "code": "const ExcelJS = require('exceljs');\nconst workbook = new ExcelJS.Workbook();\nworkbook.addWorksheet('Sheet1');\nawait workbook.xlsx.writeFile('output.xlsx');\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://cdn.jsdelivr.net/npm/exceljs@4.4.0/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F150"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "sheetjs-ce",
          "name": [
            {
              "t": "fact",
              "fact": "F160"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/SheetJS/sheetjs"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/xlsx"
            },
            {
              "label": "Docs",
              "href": "https://sheetjs.com/"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F33"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F161"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F167"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F163"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F162"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://sheetjs.com/",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F160"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F34"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F35"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F36"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F37"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F38"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F39"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F40"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F41"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F42"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F43"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F174"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F175"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/dbgate/dbgate",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F174"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "javascript",
              "code": "_final(callback) {\n    const workbook = createWorkbook(this.fileName);\n    const existingLower = new Set(workbook.SheetNames.map((n) => n.toLowerCase()));\n    const base = (this.sheetName || 'Sheet 1').substring(0, MAX_SHEET_NAME_LENGTH);\n    let sheetName = base;\n    if (existingLower.has(sheetName.toLowerCase())) {\n      let counter = 1;\n      do {\n        const suffix = `_${counter}`;\n        sheetName = base.substring(0, MAX_SHEET_NAME_LENGTH - suffix.length) + suffix;\n        counter++;\n      } while (existingLower.has(sheetName.toLowerCase()));\n    }\n    xlsx.utils.book_append_sheet(workbook, xlsx.utils.aoa_to_sheet(this.rows), sheetName);\n    callback();\n  }\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/dbgate/dbgate/blob/5ff9a2876e49c8b3cd98acf5d213656fc1dfd406/plugins/dbgate-plugin-excel/src/backend/writer.js#L68-L83",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F173"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=JavaScript%20TypeScript%20applications%20using%20xlsx%20to%20read%2C%20build%2C%20style%20or%20export%20Excel%20workbooks&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F160"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "javascript",
              "code": "const XLSX = require('xlsx');\nconst workbook = XLSX.utils.book_new();\nconst sheet = XLSX.utils.aoa_to_sheet([['Name'], ['Ada']]);\nXLSX.utils.book_append_sheet(workbook, sheet, 'Sheet1');\nXLSX.writeFile(workbook, 'output.xlsx');\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://docs.sheetjs.com/docs/api/utilities/wb",
                  "label": [
                    {
                      "t": "text",
                      "text": "Utilities docs"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F165"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "read-excel-file",
          "name": [
            {
              "t": "fact",
              "fact": "F176"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/catamphetamine/read-excel-file"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/read-excel-file"
            },
            {
              "label": "Docs",
              "href": "https://gitlab.com/catamphetamine/read-excel-file#readme"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F65"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F177"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F183"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F179"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F178"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://gitlab.com/catamphetamine/read-excel-file#readme",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F176"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F66"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F67"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F68"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F69"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F70"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F71"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F72"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F73"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F190"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F191"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/rasonyang/ai-native-callcenter",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F190"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "javascript",
              "code": "export async function readXlsxWorkbook(file: Blob | ArrayBuffer): Promise<XlsxSheet[]> {\n  // Loaded here, not at the top of the module: the dialog is on a route the\n  // SPA needs anyway, and this library is only needed once a workbook is\n  // chosen. Vite puts it in a chunk of its own.\n  const { default: readXlsxFile } = await import('read-excel-file/browser')\n  const sheets = await readXlsxFile<NumericText>(file, {\n    // The pass-through that keeps the cell's own text: the library would\n    // otherwise parse the value into a Number, and `Number` then decides how\n    // many digits a phone number has.\n    parseNumber: (text) => ({ numericText: text }),\n  })\n  // A workbook with no worksheet is not one to map columns against, and the\n  // caller has nothing to show for it — better refused than opened empty.\n  if (sheets.length === 0) throw new Error('the workbook has no sheets')\n  return sheets.map((sheet) => ({ name: sheet.sheet, table: tableOf(sheet.data as SheetRow[]) }))\n}\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/rasonyang/ai-native-callcenter/blob/41a80d2a9c2d6064dabdcde5808d096320ec2bc6/web/src/lib/xlsx.ts#L60-L75",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F189"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=JavaScript%20TypeScript%20applications%20using%20read-excel-file%20to%20read%2C%20build%2C%20style%20or%20export%20Excel%20workbooks&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F176"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "javascript",
              "code": "import { readSheet } from 'read-excel-file/node';\nconst rows = await readSheet('./input.xlsx');\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://cdn.jsdelivr.net/npm/read-excel-file@9.3.17/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F181"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "write-excel-file",
          "name": [
            {
              "t": "fact",
              "fact": "F192"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/catamphetamine/write-excel-file"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/write-excel-file"
            },
            {
              "label": "Docs",
              "href": "https://gitlab.com/catamphetamine/write-excel-file#readme"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F277"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F193"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F201"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F195"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F194"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://gitlab.com/catamphetamine/write-excel-file#readme",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F192"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F278"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F279"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F280"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F281"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F208"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F209"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/go-admin-team/go-admin-ui",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F208"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "javascript",
              "code": "const exportExcel = async<TRow extends Record<string, unknown>>({\n  header,\n  fields,\n  rows,\n  filename,\n  // Resolved per call, like the rest: this is a destructuring default, so it\n  // runs when exportExcel does rather than when the module loaded.\n  confirmText = i18n.global.t('composables.export.confirm')\n}: ExportOptions<TRow>): Promise<boolean> => {\n  if (pending) return false\n  if (!rows.length) return false\n\n  pending = true\n  try {\n    if (confirmText !== null) {\n      try {\n        await ElMessageBox.confirm(confirmText, i18n.global.t('common.notice'), {\n          type: 'warning',\n          confirmButtonText: i18n.global.t('common.confirm'),\n          cancelButtonText: i18n.global.t('common.cancel')\n        })\n      } catch {\n        // Dismissing the confirm is a decision, not a failure\n        return false\n      }\n    }\n\n    exporting.value = true\n    const { data, columns } = buildSheet(header, rows.map(row => fields.map(field => row[field])))\n\n    // The browser entry, not the package root: the root offers none, and the\n    // node one reaches for fs.\n    const { default: writeXlsxFile } = await import('write-excel-file/browser')\n    await writeXlsxFile(data, {\n      sheet: 'Sheet1',\n      columns,\n      dateFormat: DATE_FORMAT\n    }).toFile(`${filename}.xlsx`)\n    return true\n  } finally {\n    pending = false\n    exporting.value = false\n  }\n}\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/go-admin-team/go-admin-ui/blob/7e8d264c96d3b7b19e150e905efae4e20f416afc/src/composables/useExport.ts#L53-L96",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F207"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=write-excel-file%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F192"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "javascript",
              "code": "import writeExcelFile from 'write-excel-file/node';\nconst sheetData = [['Name'], ['Ada']];\nawait writeExcelFile(sheetData).toFile('./output.xlsx');\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://cdn.jsdelivr.net/npm/write-excel-file@4.1.1/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F197"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "xlsx-js-style",
          "name": [
            {
              "t": "fact",
              "fact": "F210"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/gitbrent/xlsx-js-style"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/xlsx-js-style"
            },
            {
              "label": "Docs",
              "href": "https://github.com/gitbrent/xlsx-js-style/"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F282"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F211"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F219"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F213"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F212"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://github.com/gitbrent/xlsx-js-style/",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F210"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F283"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F284"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F285"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F286"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F225"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F226"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/apache/zeppelin",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F225"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "javascript",
              "code": "export const exportFile = async (tableData: TableData, type: 'csv' | 'xlsx') => {\n  if (!tableData?.rows || tableData.rows.length === 0) {\n    return;\n  }\n\n  const { saveAs } = await import('file-saver');\n\n  if (type === 'xlsx') {\n    const XLSX = await import('xlsx-js-style');\n\n    const wb = XLSX.utils.book_new();\n    const ws = XLSX.utils.aoa_to_sheet([tableData.columnNames, ...tableData.rows]);\n    XLSX.utils.book_append_sheet(wb, ws, 'Sheet1');\n\n    const excelBuffer = XLSX.write(wb, {\n      bookType: 'xlsx',\n      type: 'array'\n    });\n\n    const blob = new Blob([excelBuffer], { type: EXCEL_TYPE });\n    saveAs(blob, `export${EXCEL_EXTENSION}`);\n  } else {\n    const separator = ',';\n    const header = tableData.columnNames.join(separator);\n    const rows = tableData.rows.map(row => row.join(separator));\n    const content = [header, ...rows].join('\\n');\n\n    // Excel reads a CSV without a BOM in the system code page, garbling non-ASCII data. The\n    // Angular and classic exports write one for the same reason (ZEPPELIN-672).\n    const BOM = '\\uFEFF';\n    const blob = new Blob([BOM, content], { type: 'text/plain;charset=utf-8' });\n    saveAs(blob, `export.${type}`);\n  }\n};\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/apache/zeppelin/blob/3ce7b63e3593aceb21dc0aa9b1a886c553d99dbf/zeppelin-web-angular/projects/zeppelin-react/src/utils/exportFile.ts#L18-L51",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F224"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=xlsx-js-style%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F210"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "javascript",
              "code": "const XLSX = require('xlsx-js-style');\nconst workbook = XLSX.utils.book_new();\nconst sheet = XLSX.utils.aoa_to_sheet([[{ v: 'Name', t: 's', s: { font: { bold: true } } }]]);\nXLSX.utils.book_append_sheet(workbook, sheet, 'Sheet1');\nXLSX.writeFile(workbook, 'output.xlsx');\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://cdn.jsdelivr.net/npm/xlsx-js-style@1.2.0/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F215"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "node-xlsx",
          "name": [
            {
              "t": "fact",
              "fact": "F227"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/mgcrea/node-xlsx"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/node-xlsx"
            },
            {
              "label": "Docs",
              "href": "https://github.com/mgcrea/node-xlsx#readme"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F287"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F228"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F236"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F230"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F229"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://github.com/mgcrea/node-xlsx#readme",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F227"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F288"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F289"
                }
              ]
            }
          ],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F242"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F243"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/moshang-ax/lottery",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F242"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "javascript",
              "code": "/**\n * 写入excel\n * @param {Array} data\n * @param {string} name\n */\nfunction writeXML(data, name) {\n  let buffer = xlsx.build([\n    {\n      name: \"抽奖结果\",\n      data: data\n    }\n  ]);\n\n  return new Promise((resolve, reject) => {\n    fs.writeFile(path.join(process.cwd(), name), buffer, err => {\n      if (err) {\n        reject(err);\n        return;\n      }\n      resolve();\n    });\n  });\n}\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/moshang-ax/lottery/blob/1590205dacb44a5a8a3a1a2c77b58e9466dc6bf1/server/help.js#L57-L79",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F241"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=node-xlsx%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F227"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "javascript",
              "code": "import xlsx from 'node-xlsx';\nconst sheets = xlsx.parse('./input.xlsx');\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://cdn.jsdelivr.net/npm/node-xlsx@0.25.0/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F232"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "xlsx-populate",
          "name": [
            {
              "t": "fact",
              "fact": "F244"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/dtjohnson/xlsx-populate"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/xlsx-populate"
            },
            {
              "label": "Docs",
              "href": "https://github.com/dtjohnson/xlsx-populate#readme"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F92"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F245"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F251"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F247"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F246"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://github.com/dtjohnson/xlsx-populate#readme",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F244"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F93"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F94"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F95"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F96"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F97"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F98"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F99"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F100"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F258"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F259"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/ananthakumaran/paisa",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F258"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "javascript",
              "code": "async function parseXLSX(file: File): Promise<Result> {\n  const buffer = await readFile(file);\n  try {\n    const sheet = XLSX.read(buffer, { type: \"binary\" });\n    const json = XLSX.utils.sheet_to_json<string[]>(sheet.Sheets[sheet.SheetNames[0]], {\n      header: 1,\n      blankrows: false,\n      rawNumbers: false\n    });\n    return { data: json };\n  } catch (e) {\n    if (/password-protected/.test(e.message)) {\n      const password = prompt(\n        \"Please enter the password to open this XLSX file. Press cancel to exit.\"\n      );\n      if (password === null) {\n        return { data: [], error: \"Password required.\" };\n      }\n\n      try {\n        const workbook = await XlsxPopulate.fromDataAsync(buffer, { password });\n        const sheet = workbook.sheet(0);\n        if (sheet) {\n          let json = sheet.usedRange().value();\n          json = _.map(json, (row) => {\n            return _.map(row, (cell) => {\n              if (cell) {\n                return cell.toString();\n              }\n              return \"\";\n            });\n          });\n\n          return { data: json };\n        }\n      } catch (e) {\n        // follow through to the error below\n      }\n\n      return { data: [], error: \"Unable to parse Password protected XLSX\" };\n    }\n    throw e;\n  }\n}\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/ananthakumaran/paisa/blob/c481872120ade8f123f74a501fd6a13842495c93/src/lib/spreadsheet.ts#L84-L127",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F257"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=JavaScript%20TypeScript%20applications%20using%20xlsx-populate%20to%20read%2C%20build%2C%20style%20or%20export%20Excel%20workbooks&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F244"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "javascript",
              "code": "const XlsxPopulate = require('xlsx-populate');\nconst workbook = await XlsxPopulate.fromBlankAsync();\nworkbook.sheet(0).cell('A1').value('Hello');\nawait workbook.toFileAsync('./output.xlsx');\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://cdn.jsdelivr.net/npm/xlsx-populate@1.21.0/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F249"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "excelfournode",
          "name": [
            {
              "t": "fact",
              "fact": "F260"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/advisr-io/excel4node"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/excel4node"
            },
            {
              "label": "Docs",
              "href": "https://github.com/advisr-io/excel4node#readme"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F290"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F261"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F269"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F263"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F262"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://github.com/advisr-io/excel4node#readme",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F260"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F291"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F292"
                }
              ]
            }
          ],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F275"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F276"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/sysgears/apollo-universal-starter-kit",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F275"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "javascript",
              "code": "export default function generateBufferExcel(contacts: UserContact[]) {\n  const ws = wb.addWorksheet('Report', options);\n  const titles = Object.keys(contacts[0]);\n\n  titles.forEach((title, i) => {\n    const capitalized = title[0].toUpperCase() + title.slice(1);\n    ws.cell(1, i + 1)\n      .string(capitalized)\n      .style(style);\n  });\n\n  contacts.forEach((item, i) => {\n    const values = Object.values(item);\n    values.forEach((value, j) => {\n      ws.cell(i + 2, j + 1)\n        .string(String(value))\n        .style(style);\n    });\n  });\n\n  return wb.writeToBuffer();\n}\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/sysgears/apollo-universal-starter-kit/blob/ec9d80d3a8444a40ae9076d175111e5b8130fa12/modules/reports/server-ts/excel/helpers/generateExcel.ts#L17-L38",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F274"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=excel4node%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F260"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "javascript",
              "code": "const xl = require('excel4node');\nconst workbook = new xl.Workbook();\nconst sheet = workbook.addWorksheet('Sheet1');\nsheet.cell(1, 1).string('Hello');\nworkbook.write('output.xlsx');\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://cdn.jsdelivr.net/npm/excel4node@1.8.2/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F265"
            }
          ]
        }
      ]
    }
  ],
  "questions": [
    {
      "q": "What is ExcelJS?",
      "a": [
        {
          "t": "link",
          "href": "#exceljs",
          "label": [
            {
              "t": "text",
              "text": "ExcelJS"
            }
          ]
        },
        {
          "t": "text",
          "text": " reads, builds, and styles Excel workbooks in JavaScript. Its streaming writer adds rows progressively and releases committed row objects."
        }
      ]
    },
    {
      "q": "What is SheetJS?",
      "a": [
        {
          "t": "link",
          "href": "#sheetjs-ce",
          "label": [
            {
              "t": "text",
              "text": "SheetJS CE"
            }
          ]
        },
        {
          "t": "text",
          "text": " is the community edition of the SheetJS spreadsheet parser and writer. It extracts data from older XLS files and current XLSX workbooks and exports new workbooks."
        }
      ]
    },
    {
      "q": "ExcelJS vs SheetJS: which should I use?",
      "a": [
        {
          "t": "link",
          "href": "#exceljs",
          "label": [
            {
              "t": "text",
              "text": "ExcelJS"
            }
          ]
        },
        {
          "t": "text",
          "text": " builds and styles XLSX workbooks, with a streaming writer for large reports. "
        },
        {
          "t": "link",
          "href": "#sheetjs-ce",
          "label": [
            {
              "t": "text",
              "text": "SheetJS CE"
            }
          ]
        },
        {
          "t": "text",
          "text": " reads many spreadsheet formats and converts between them."
        }
      ]
    },
    {
      "q": "Does npm install xlsx get the current SheetJS release?",
      "a": [
        {
          "t": "fact",
          "fact": "F128"
        },
        {
          "t": "text",
          "text": " "
        },
        {
          "t": "fact",
          "fact": "F129"
        }
      ]
    },
    {
      "q": "What is xlsx-js-style?",
      "a": [
        {
          "t": "link",
          "href": "#xlsx-js-style",
          "label": [
            {
              "t": "text",
              "text": "xlsx-js-style"
            }
          ]
        },
        {
          "t": "text",
          "text": " adds basic cell styles to SheetJS, such as fonts, fills, borders, alignment, and number formats."
        }
      ]
    },
    {
      "q": "Can these libraries calculate Excel formulas?",
      "a": [
        {
          "t": "fact",
          "fact": "F130"
        },
        {
          "t": "text",
          "text": " "
        },
        {
          "t": "fact",
          "fact": "F131"
        },
        {
          "t": "text",
          "text": " "
        },
        {
          "t": "fact",
          "fact": "F132"
        }
      ]
    }
  ],
  "facts": {
    "F1": {
      "label": "Library name, exceljs",
      "display": "ExcelJS",
      "asOf": "2026-11-17"
    },
    "F2": {
      "label": "Monthly downloads, exceljs",
      "display": "102.0M",
      "asOf": "2026-11-15"
    },
    "F3": {
      "label": "License, exceljs",
      "display": "MIT",
      "asOf": "2026-11-17"
    },
    "F4": {
      "label": "Package release, exceljs",
      "display": "4.4.0",
      "asOf": "2026-11-17"
    },
    "F5": {
      "label": "Undated package release, exceljs",
      "display": "v4.4.0",
      "asOf": "2026-11-17"
    },
    "F6": {
      "label": "Repository stars, exceljs",
      "display": "15.5K",
      "asOf": "2026-11-17"
    },
    "F7": {
      "label": "Reads XLSX workbooks, exceljs",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F8": {
      "label": "Writes XLSX workbooks, exceljs",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F9": {
      "label": "Applies cell styles, exceljs",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F10": {
      "label": "Output formats, exceljs",
      "display": "XLSX",
      "asOf": "2026-11-17"
    },
    "F11": {
      "label": "Install, exceljs",
      "display": "npm install exceljs",
      "asOf": "2026-11-17"
    },
    "F12": {
      "label": "What it does, exceljs",
      "display": "Reads, builds, and styles spreadsheet workbooks in JavaScript.",
      "asOf": "2026-11-17"
    },
    "F13": {
      "label": "strengths lead, exceljs",
      "display": "Streams workbook rows",
      "asOf": "2026-11-17"
    },
    "F14": {
      "label": "strengths, exceljs",
      "display": "Write rows progressively and release committed row objects.",
      "asOf": "2026-11-17"
    },
    "F15": {
      "label": "strengths lead, exceljs",
      "display": "Styles cells, rows, and columns",
      "asOf": "2026-11-17"
    },
    "F16": {
      "label": "strengths, exceljs",
      "display": "Apply number formats and visual styles at different worksheet levels.",
      "asOf": "2026-11-17"
    },
    "F17": {
      "label": "limitations lead, exceljs",
      "display": "Formula results need external calculation",
      "asOf": "2026-11-17"
    },
    "F18": {
      "label": "limitations, exceljs",
      "display": "Supply calculated results when writing formula cells.",
      "asOf": "2026-11-17"
    },
    "F19": {
      "label": "limitations lead, exceljs",
      "display": "Streaming mode excludes images",
      "asOf": "2026-11-17"
    },
    "F20": {
      "label": "limitations, exceljs",
      "display": "Use document workbooks when the exported spreadsheet needs images.",
      "asOf": "2026-11-17"
    },
    "F21": {
      "label": "Quickstart, exceljs",
      "display": "const ExcelJS = require('exceljs');\n\nconst workbook = new ExcelJS.Workbook();\n\nworkbook.creator = 'Me';\nworkbook.lastModifiedBy = 'Her';\nworkbook.created = new Date(1985, 8, 30);\nworkbook.modified = new Date();\nworkbook.lastPrinted = new Date(2016, 9, 27);\n\n// Set workbook dates to 1904 date system\nworkbook.properties.date1904 = true;\n\n// Force workbook calculation on load\nworkbook.calcProperties.fullCalcOnLoad = true;\n\nworkbook.views = [\n  {\n    x: 0, y: 0, width: 10000, height: 20000,\n    firstSheet: 0, activeTab: 1, visibility: 'visible'\n  }\n]\n\nconst sheet = workbook.addWorksheet('My Sheet');\n",
      "asOf": "2026-11-17"
    },
    "F22": {
      "label": "Library name, xlsx",
      "display": "SheetJS CE",
      "asOf": "2026-11-17"
    },
    "F23": {
      "label": "Monthly downloads, xlsx",
      "display": "59.1M",
      "asOf": "2026-11-15"
    },
    "F24": {
      "label": "License, xlsx",
      "display": "Apache-2.0",
      "asOf": "2026-11-17"
    },
    "F25": {
      "label": "Package release, xlsx",
      "display": "0.20.3",
      "asOf": "2026-11-17"
    },
    "F26": {
      "label": "Undated package release, xlsx",
      "display": "v0.20.3",
      "asOf": "2026-11-17"
    },
    "F27": {
      "label": "Repository stars, xlsx",
      "display": "36.3K",
      "asOf": "2026-11-17"
    },
    "F28": {
      "label": "Reads XLSX workbooks, xlsx",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F29": {
      "label": "Writes XLSX workbooks, xlsx",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F30": {
      "label": "Opens encrypted workbooks, xlsx",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F31": {
      "label": "Output formats, xlsx",
      "display": "XLSX",
      "asOf": "2026-11-17"
    },
    "F32": {
      "label": "Install, xlsx",
      "display": "npm install --save https://cdn.sheetjs.com/xlsx-0.20.3/xlsx-0.20.3.tgz",
      "asOf": "2026-11-17"
    },
    "F33": {
      "label": "What it does, xlsx",
      "display": "Extracts spreadsheet data and generates new spreadsheet files.",
      "asOf": "2026-11-17"
    },
    "F34": {
      "label": "strengths lead, xlsx",
      "display": "Reads varied spreadsheet formats",
      "asOf": "2026-11-17"
    },
    "F35": {
      "label": "strengths, xlsx",
      "display": "Extract data from older XLS files and current XLSX workbooks.",
      "asOf": "2026-11-17"
    },
    "F36": {
      "label": "strengths lead, xlsx",
      "display": "Builds workbooks from row objects",
      "asOf": "2026-11-17"
    },
    "F37": {
      "label": "strengths, xlsx",
      "display": "Convert JavaScript records into worksheets and export an XLSX file.",
      "asOf": "2026-11-17"
    },
    "F38": {
      "label": "limitations lead, xlsx",
      "display": "Npm releases trail official downloads",
      "asOf": "2026-11-17"
    },
    "F39": {
      "label": "limitations, xlsx",
      "display": "Install the current release from the official download URL.",
      "asOf": "2026-11-17"
    },
    "F40": {
      "label": "limitations lead, xlsx",
      "display": "File decryption covers XOR only",
      "asOf": "2026-11-17"
    },
    "F41": {
      "label": "limitations, xlsx",
      "display": "Use another tool for AES-encrypted XLSX files.",
      "asOf": "2026-11-17"
    },
    "F42": {
      "label": "limitations lead, xlsx",
      "display": "Formula results need external calculation",
      "asOf": "2026-11-17"
    },
    "F43": {
      "label": "limitations, xlsx",
      "display": "Writing formulas does not calculate their results in JavaScript.",
      "asOf": "2026-11-17"
    },
    "F44": {
      "label": "Quickstart, xlsx",
      "display": "const XLSX = require(\"xlsx\");(async() => {  /* fetch JSON data and parse */  const url = \"https://docs.sheetjs.com/executive.json\";  const raw_data = await (await fetch(url)).json();  /* filter for the Presidents */  const prez = raw_data.filter(row => row.terms.some(term => term.type === \"prez\"));  /* sort by first presidential term */  prez.forEach(row => row.start = row.terms.find(term => term.type === \"prez\").start);  prez.sort((l,r) => l.start.localeCompare(r.start));  /* flatten objects */  const rows = prez.map(row => ({    name: row.name.first + \" \" + row.name.last,    birthday: row.bio.birthday  }));  /* generate worksheet and workbook */  const worksheet = XLSX.utils.json_to_sheet(rows);  const workbook = XLSX.utils.book_new();  XLSX.utils.book_append_sheet(workbook, worksheet, \"Dates\");  /* fix headers */  XLSX.utils.sheet_add_aoa(worksheet, [[\"Name\", \"Birthday\"]], { origin: \"A1\" });  /* calculate column width */  const max_width = rows.reduce((w, r) => Math.max(w, r.name.length), 10);  worksheet[\"!cols\"] = [ { wch: max_width } ];  /* create an XLSX file and try to save to Presidents.xlsx */  XLSX.writeFile(workbook, \"Presidents.xlsx\", { compression: true });})();\n",
      "asOf": "2026-11-17"
    },
    "F45": {
      "label": "Project function, xlsx",
      "display": "_final(callback) {\n    const workbook = createWorkbook(this.fileName);\n    const existingLower = new Set(workbook.SheetNames.map((n) => n.toLowerCase()));\n    const base = (this.sheetName || 'Sheet 1').substring(0, MAX_SHEET_NAME_LENGTH);\n    let sheetName = base;\n    if (existingLower.has(sheetName.toLowerCase())) {\n      let counter = 1;\n      do {\n        const suffix = `_${counter}`;\n        sheetName = base.substring(0, MAX_SHEET_NAME_LENGTH - suffix.length) + suffix;\n        counter++;\n      } while (existingLower.has(sheetName.toLowerCase()));\n    }\n    xlsx.utils.book_append_sheet(workbook, xlsx.utils.aoa_to_sheet(this.rows), sheetName);\n    callback();\n  }\n",
      "asOf": "2026-11-17"
    },
    "F46": {
      "label": "Project function reference, xlsx",
      "display": "writer.js · _final()",
      "asOf": "2026-11-17"
    },
    "F47": {
      "label": "Project repository, xlsx",
      "display": "dbgate/dbgate",
      "asOf": "2026-11-17"
    },
    "F48": {
      "label": "Project stars, dbgate/dbgate",
      "display": "7.4K",
      "asOf": "2026-11-17"
    },
    "F49": {
      "label": "Project push date, dbgate/dbgate",
      "display": "Nov 2026",
      "asOf": "2026-11-16"
    },
    "F50": {
      "label": "Project function, xlsx",
      "display": "export async function parseXlsxFile(filePath: string): Promise<CsvRow[]> {\n  try {\n    // Parse file path and optional sheet name\n    // Supports syntax: file.xlsx#SheetName or file.xlsx#2 (1-based index)\n    const [actualFilePath, sheetSpecifier] = filePath.split('#');\n\n    // Try to import xlsx first to give proper error if not installed\n    const xlsx = await import('xlsx');\n\n    // Check if file exists before attempting to read it\n    if (!fs.existsSync(actualFilePath)) {\n      throw new Error(`File not found: ${actualFilePath}`);\n    }\n    const workbook = xlsx.readFile(actualFilePath);\n\n    // Validate that the workbook has at least one sheet\n    if (!workbook.SheetNames || workbook.SheetNames.length === 0) {\n      throw new Error('Excel file has no sheets');\n    }\n\n    // Determine which sheet to use\n    let sheetName: string;\n\n    if (sheetSpecifier) {\n      // Check if it's a numeric index (1-based)\n      const sheetIndex = parseInt(sheetSpecifier, 10);\n      if (isNaN(sheetIndex)) {\n        // It's a sheet name\n        if (!workbook.SheetNames.includes(sheetSpecifier)) {\n          throw new Error(\n            `Sheet \"${sheetSpecifier}\" not found. Available sheets: ${workbook.SheetNames.join(', ')}`,\n          );\n        }\n        sheetName = sheetSpecifier;\n      } else {\n        // Convert to 0-based index\n        const zeroBasedIndex = sheetIndex - 1;\n        if (zeroBasedIndex < 0 || zeroBasedIndex >= workbook.SheetNames.length) {\n          throw new Error(\n            `Sheet index ${sheetIndex} is out of range. Available sheets: ${workbook.SheetNames.length} (1-${workbook.SheetNames.length})`,\n          );\n        }\n        sheetName = workbook.SheetNames[zeroBasedIndex];\n      }\n    } else {\n      // Use the first sheet by default\n      sheetName = workbook.SheetNames[0];\n    }\n\n    const sheet = workbook.Sheets[sheetName];\n\n    // Convert sheet to JSON and validate the result\n    const data = xlsx.utils.sheet_to_json<CsvRow>(sheet, { defval: '' });\n\n    // Check if the sheet is empty\n    if (data.length === 0) {\n      throw new Error(`Sheet \"${sheetName}\" is empty or contains no valid data rows`);\n    }\n\n    // Check if the first row has any headers\n    const firstRow = data[0];\n    const headers = Object.keys(firstRow);\n    if (headers.length === 0) {\n      throw new Error(`Sheet \"${sheetName}\" has no valid column headers`);\n    }\n\n    // Check for completely empty columns (all values are empty strings)\n    const hasValidData = data.some((row) =>\n      headers.some((header) => row[header] && row[header].toString().trim() !== ''),\n    );\n\n    if (!hasValidData) {\n      throw new Error(\n        `Sheet \"${sheetName}\" contains only empty data. Please ensure the sheet has both headers and data rows.`,\n      );\n    }\n\n    return data;\n  } catch (error) {\n    if (error instanceof Error) {\n      // Handle missing xlsx module\n      if (error.message.includes(\"Cannot find module 'xlsx'\")) {\n        throw new Error(\n          'xlsx is not installed. Please install it with: npm install xlsx\\n' +\n            'Note: xlsx is an optional peer dependency for reading Excel files.',\n        );\n      }\n\n      // Re-throw our own validation errors without wrapping\n      // These already have descriptive messages\n      const knownErrors = [\n        'File not found:',\n        'Excel file has no sheets',\n        'Sheet \"',\n        'Sheet index',\n        'contains only empty data',\n      ];\n\n      if (knownErrors.some((prefix) => error.message.startsWith(prefix))) {\n        throw error;\n      }\n    }\n\n    // Wrap unexpected parsing errors\n    throw new Error(\n      `Failed to parse Excel file ${filePath}: ${error instanceof Error ? error.message : String(error)}`,\n    );\n  }\n}\n",
      "asOf": "2026-11-17"
    },
    "F51": {
      "label": "Project function reference, xlsx",
      "display": "xlsx.ts · parseXlsxFile()",
      "asOf": "2026-11-17"
    },
    "F52": {
      "label": "Project repository, xlsx",
      "display": "promptfoo/promptfoo",
      "asOf": "2026-11-17"
    },
    "F53": {
      "label": "Project stars, promptfoo/promptfoo",
      "display": "27.3K",
      "asOf": "2026-11-17"
    },
    "F54": {
      "label": "Project push date, promptfoo/promptfoo",
      "display": "Nov 2026",
      "asOf": "2026-11-16"
    },
    "F55": {
      "label": "Library name, read-excel-file",
      "display": "read-excel-file",
      "asOf": "2026-11-17"
    },
    "F56": {
      "label": "Monthly downloads, read-excel-file",
      "display": "19.0M",
      "asOf": "2026-11-15"
    },
    "F57": {
      "label": "License, read-excel-file",
      "display": "MIT",
      "asOf": "2026-11-17"
    },
    "F58": {
      "label": "Package release, read-excel-file",
      "display": "9.3.17",
      "asOf": "2026-11-17"
    },
    "F59": {
      "label": "Undated package release, read-excel-file",
      "display": "v9.3.17",
      "asOf": "2026-11-17"
    },
    "F60": {
      "label": "Repository stars, read-excel-file",
      "display": "331",
      "asOf": "2026-11-17"
    },
    "F61": {
      "label": "Reads XLSX workbooks, read-excel-file",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F62": {
      "label": "Writes XLSX workbooks, read-excel-file",
      "display": "Unsupported",
      "asOf": "2026-11-17"
    },
    "F63": {
      "label": "Applies cell styles, read-excel-file",
      "display": "Unsupported",
      "asOf": "2026-11-17"
    },
    "F64": {
      "label": "Install, read-excel-file",
      "display": "npm install read-excel-file",
      "asOf": "2026-11-17"
    },
    "F65": {
      "label": "What it does, read-excel-file",
      "display": "Reads XLSX files as rows or schema-mapped records in browsers and Node.js.",
      "asOf": "2026-11-17"
    },
    "F66": {
      "label": "strengths lead, read-excel-file",
      "display": "Maps rows through schemas",
      "asOf": "2026-11-17"
    },
    "F67": {
      "label": "strengths, read-excel-file",
      "display": "Map spreadsheet columns to named object properties and validate values.",
      "asOf": "2026-11-17"
    },
    "F68": {
      "label": "strengths lead, read-excel-file",
      "display": "Runs in browsers and Node",
      "asOf": "2026-11-17"
    },
    "F69": {
      "label": "strengths, read-excel-file",
      "display": "Read uploaded spreadsheets or files from a Node.js application.",
      "asOf": "2026-11-17"
    },
    "F70": {
      "label": "limitations lead, read-excel-file",
      "display": "Legacy XLS files are unsupported",
      "asOf": "2026-11-17"
    },
    "F71": {
      "label": "limitations, read-excel-file",
      "display": "Convert older workbooks to XLSX before reading them.",
      "asOf": "2026-11-17"
    },
    "F72": {
      "label": "limitations lead, read-excel-file",
      "display": "Formula values must be cached",
      "asOf": "2026-11-17"
    },
    "F73": {
      "label": "limitations, read-excel-file",
      "display": "Formula cells without stored results are read as empty cells.",
      "asOf": "2026-11-17"
    },
    "F74": {
      "label": "Quickstart, read-excel-file",
      "display": "import { readSheet } from 'read-excel-file/node'\n\nconst data = await readSheet('/path/to/file')\n",
      "asOf": "2026-11-17"
    },
    "F75": {
      "label": "Project function, read-excel-file",
      "display": "const readImportFile = (file: File) => {\n    const fileTypes = ['xlsx']\n    const filename = file.name\n    const extension = filename.split('.').pop()?.toLowerCase()\n    const isValidExtensions = extension && fileTypes.indexOf(extension) > -1\n\n    if (!isValidExtensions) {\n      messageError('Import file must be .XLSX or .CSV')\n      return\n    }\n\n    readXlsxFile(file)\n      .then(rows => {\n        if (!rows.length) return\n\n        setHeading(rows[0] as string[])\n        rows.shift()\n\n        setOriginRows(rows)\n        setRows(rows)\n      })\n      .catch(error => error)\n  }\n",
      "asOf": "2026-11-17"
    },
    "F76": {
      "label": "Project function reference, read-excel-file",
      "display": "TaskImportArea.tsx · readImportFile()",
      "asOf": "2026-11-17"
    },
    "F77": {
      "label": "Project repository, read-excel-file",
      "display": "hudy9x/namviek",
      "asOf": "2026-11-17"
    },
    "F78": {
      "label": "Project stars, hudy9x/namviek",
      "display": "2.6K",
      "asOf": "2026-11-17"
    },
    "F79": {
      "label": "Project push date, hudy9x/namviek",
      "display": "May 2026",
      "asOf": "2026-05-25"
    },
    "F80": {
      "label": "Library name, xlsx-populate",
      "display": "xlsx-populate",
      "asOf": "2026-11-17"
    },
    "F81": {
      "label": "Monthly downloads, xlsx-populate",
      "display": "1.1M",
      "asOf": "2026-11-15"
    },
    "F82": {
      "label": "License, xlsx-populate",
      "display": "MIT",
      "asOf": "2026-11-17"
    },
    "F83": {
      "label": "Package release, xlsx-populate",
      "display": "1.21.0",
      "asOf": "2026-11-17"
    },
    "F84": {
      "label": "Undated package release, xlsx-populate",
      "display": "v1.21.0",
      "asOf": "2026-11-17"
    },
    "F85": {
      "label": "Repository stars, xlsx-populate",
      "display": "1.0K",
      "asOf": "2026-11-17"
    },
    "F86": {
      "label": "Reads XLSX workbooks, xlsx-populate",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F87": {
      "label": "Writes XLSX workbooks, xlsx-populate",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F88": {
      "label": "Applies cell styles, xlsx-populate",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F89": {
      "label": "Opens encrypted workbooks, xlsx-populate",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F90": {
      "label": "Output formats, xlsx-populate",
      "display": "XLSX",
      "asOf": "2026-11-17"
    },
    "F91": {
      "label": "Install, xlsx-populate",
      "display": "npm install xlsx-populate",
      "asOf": "2026-11-17"
    },
    "F92": {
      "label": "What it does, xlsx-populate",
      "display": "Edits XLSX workbooks while preserving existing features and styles.",
      "asOf": "2026-11-17"
    },
    "F93": {
      "label": "strengths lead, xlsx-populate",
      "display": "Preserves existing workbook styles",
      "asOf": "2026-11-17"
    },
    "F94": {
      "label": "strengths, xlsx-populate",
      "display": "Edit a template while retaining its existing formatting.",
      "asOf": "2026-11-17"
    },
    "F95": {
      "label": "strengths lead, xlsx-populate",
      "display": "Opens compatible encrypted XLSX files",
      "asOf": "2026-11-17"
    },
    "F96": {
      "label": "strengths, xlsx-populate",
      "display": "Supply a password for workbooks using XLSX Agile encryption.",
      "asOf": "2026-11-17"
    },
    "F97": {
      "label": "limitations lead, xlsx-populate",
      "display": "Renaming sheets leaves formula references",
      "asOf": "2026-11-17"
    },
    "F98": {
      "label": "limitations, xlsx-populate",
      "display": "Formulas that point at a renamed sheet keep the old sheet name.",
      "asOf": "2026-11-17"
    },
    "F99": {
      "label": "limitations lead, xlsx-populate",
      "display": "Formula results need external calculation",
      "asOf": "2026-11-17"
    },
    "F100": {
      "label": "limitations, xlsx-populate",
      "display": "Changed inputs do not recalculate formula values.",
      "asOf": "2026-11-17"
    },
    "F101": {
      "label": "Quickstart, xlsx-populate",
      "display": "const XlsxPopulate = require('xlsx-populate');\n\n// Load a new blank workbook\nXlsxPopulate.fromBlankAsync()\n    .then(workbook => {\n        // Modify the workbook.\n        workbook.sheet(\"Sheet1\").cell(\"A1\").value(\"This is neat!\");\n\n        // Write to file.\n        return workbook.toFileAsync(\"./out.xlsx\");\n    });\n",
      "asOf": "2026-11-17"
    },
    "F102": {
      "label": "Project function, xlsx-populate",
      "display": "async function parseXLSX(file: File): Promise<Result> {\n  const buffer = await readFile(file);\n  try {\n    const sheet = XLSX.read(buffer, { type: \"binary\" });\n    const json = XLSX.utils.sheet_to_json<string[]>(sheet.Sheets[sheet.SheetNames[0]], {\n      header: 1,\n      blankrows: false,\n      rawNumbers: false\n    });\n    return { data: json };\n  } catch (e) {\n    if (/password-protected/.test(e.message)) {\n      const password = prompt(\n        \"Please enter the password to open this XLSX file. Press cancel to exit.\"\n      );\n      if (password === null) {\n        return { data: [], error: \"Password required.\" };\n      }\n\n      try {\n        const workbook = await XlsxPopulate.fromDataAsync(buffer, { password });\n        const sheet = workbook.sheet(0);\n        if (sheet) {\n          let json = sheet.usedRange().value();\n          json = _.map(json, (row) => {\n            return _.map(row, (cell) => {\n              if (cell) {\n                return cell.toString();\n              }\n              return \"\";\n            });\n          });\n\n          return { data: json };\n        }\n      } catch (e) {\n        // follow through to the error below\n      }\n\n      return { data: [], error: \"Unable to parse Password protected XLSX\" };\n    }\n    throw e;\n  }\n}\n",
      "asOf": "2026-11-17"
    },
    "F103": {
      "label": "Project function reference, xlsx-populate",
      "display": "spreadsheet.ts · parseXLSX()",
      "asOf": "2026-11-17"
    },
    "F104": {
      "label": "Project repository, xlsx-populate",
      "display": "ananthakumaran/paisa",
      "asOf": "2026-11-17"
    },
    "F105": {
      "label": "Project stars, ananthakumaran/paisa",
      "display": "3.2K",
      "asOf": "2026-11-17"
    },
    "F106": {
      "label": "Project push date, ananthakumaran/paisa",
      "display": "Nov 2026",
      "asOf": "2026-11-15"
    },
    "F107": {
      "label": "Developer need",
      "display": "Streaming XLSX reports",
      "asOf": "2026-11-17"
    },
    "F108": {
      "label": "Why choose exceljs",
      "display": "writing rows progressively without retaining committed row objects",
      "asOf": "2026-11-17"
    },
    "F109": {
      "label": "Developer need in introduction",
      "display": "streaming XLSX reports",
      "asOf": "2026-11-17"
    },
    "F110": {
      "label": "When to consider xlsx-populate",
      "display": "preserving an existing template is central",
      "asOf": "2026-11-17"
    },
    "F111": {
      "label": "Developer need",
      "display": "Spreadsheet format conversion",
      "asOf": "2026-11-17"
    },
    "F112": {
      "label": "Why choose xlsx",
      "display": "extracting data from legacy and modern spreadsheet formats",
      "asOf": "2026-11-17"
    },
    "F113": {
      "label": "Developer need in introduction",
      "display": "spreadsheet format conversion",
      "asOf": "2026-11-17"
    },
    "F114": {
      "label": "When to consider exceljs",
      "display": "streaming workbook output is required",
      "asOf": "2026-11-17"
    },
    "F115": {
      "label": "Developer need",
      "display": "Editing styled XLSX templates",
      "asOf": "2026-11-17"
    },
    "F116": {
      "label": "Why choose xlsx-populate",
      "display": "retaining workbook features and styles while editing templates",
      "asOf": "2026-11-17"
    },
    "F117": {
      "label": "Developer need in introduction",
      "display": "editing styled XLSX templates",
      "asOf": "2026-11-17"
    },
    "F118": {
      "label": "When to consider xlsx",
      "display": "input includes legacy spreadsheet formats",
      "asOf": "2026-11-17"
    },
    "F119": {
      "label": "Developer need",
      "display": "Reading rows into application records",
      "asOf": "2026-11-17"
    },
    "F120": {
      "label": "Why choose read-excel-file",
      "display": "mapping spreadsheet columns through a schema",
      "asOf": "2026-11-17"
    },
    "F121": {
      "label": "Developer need in introduction",
      "display": "reading rows into application records",
      "asOf": "2026-11-17"
    },
    "F122": {
      "label": "When to consider exceljs",
      "display": "the application also needs to generate workbooks",
      "asOf": "2026-11-17"
    },
    "F123": {
      "label": "Page introduction",
      "display": "JavaScript Excel workbook libraries let application developers read or create spreadsheets.",
      "asOf": "2026-11-17"
    },
    "F124": {
      "label": "FAQ: Which JavaScript Excel library should I choose?",
      "display": "ExcelJS provides a streaming XLSX writer.",
      "asOf": "2026-11-17"
    },
    "F125": {
      "label": "FAQ: Which JavaScript Excel library should I choose?",
      "display": "SheetJS CE extracts data and generates spreadsheets.",
      "asOf": "2026-11-17"
    },
    "F126": {
      "label": "FAQ: Which JavaScript Excel library should I choose?",
      "display": "xlsx-populate focuses on retaining existing workbook features and styles.",
      "asOf": "2026-11-17"
    },
    "F127": {
      "label": "FAQ: Which JavaScript Excel library should I choose?",
      "display": "read-excel-file focuses on reading XLSX files.",
      "asOf": "2026-11-17"
    },
    "F128": {
      "label": "FAQ: Does npm install xlsx get the current SheetJS release?",
      "display": "The official installation page says the npm registry is out of date.",
      "asOf": "2026-11-17"
    },
    "F129": {
      "label": "FAQ: Does npm install xlsx get the current SheetJS release?",
      "display": "The official download URL supplies version 0.20.3.",
      "asOf": "2026-11-17"
    },
    "F130": {
      "label": "FAQ: Can these libraries calculate Excel formulas?",
      "display": "ExcelJS requires the formula result to be supplied.",
      "asOf": "2026-11-17"
    },
    "F131": {
      "label": "FAQ: Can these libraries calculate Excel formulas?",
      "display": "SheetJS CE does not automatically calculate formula results.",
      "asOf": "2026-11-17"
    },
    "F132": {
      "label": "FAQ: Can these libraries calculate Excel formulas?",
      "display": "xlsx-populate does not recalculate values after workbook changes.",
      "asOf": "2026-11-17"
    },
    "F133": {
      "label": "FAQ: Can JavaScript open password-protected Excel workbooks?",
      "display": "xlsx-populate supports XLSX Agile encryption with a supplied password.",
      "asOf": "2026-11-17"
    },
    "F134": {
      "label": "FAQ: Can JavaScript open password-protected Excel workbooks?",
      "display": "SheetJS CE supports XOR encryption in XLS files; other encryption methods raise errors.",
      "asOf": "2026-11-17"
    },
    "F135": {
      "label": "FAQ: Does SheetJS CE include every SheetJS feature?",
      "display": "SheetJS Pro is separately described as adding styling, templates, images, and calculation features.",
      "asOf": "2026-11-17"
    },
    "F136": {
      "label": "FAQ: Can ExcelJS stream a workbook containing images?",
      "display": "ExcelJS excludes images from streaming mode.",
      "asOf": "2026-11-17"
    },
    "F137": {
      "label": "FAQ: Can committed ExcelJS rows be edited later?",
      "display": "A committed row is dropped and is no longer accessible.",
      "asOf": "2026-11-17"
    },
    "F138": {
      "label": "FAQ: Does xlsx-populate update formulas when a sheet is renamed?",
      "display": "Renaming a sheet does not rename references to it; formulas can break.",
      "asOf": "2026-11-17"
    },
    "F139": {
      "label": "FAQ: Can read-excel-file import legacy XLS files?",
      "display": "Legacy binary XLS is unsupported and must first be re-saved as XLSX.",
      "asOf": "2026-11-17"
    },
    "F140": {
      "label": "FAQ: Can read-excel-file map columns to object properties?",
      "display": "A schema maps named spreadsheet columns to properties on the desired object.",
      "asOf": "2026-11-17"
    },
    "F141": {
      "label": "FAQ: Can read-excel-file map columns to object properties?",
      "display": "Schema features include required-property and value-type validation.",
      "asOf": "2026-11-17"
    },
    "F142": {
      "label": "FAQ: What happens to formula cells without cached values?",
      "display": "read-excel-file reads formula cells as empty when their creator did not precompute values.",
      "asOf": "2026-11-17"
    },
    "F143": {
      "label": "FAQ: Do workbook getters returning JSON count as exported files?",
      "display": "The SheetJS example explicitly generates and exports an XLSX file.",
      "asOf": "2026-11-17"
    },
    "F144": {
      "label": "FAQ: Do workbook getters returning JSON count as exported files?",
      "display": "read-excel-file explicitly focuses on reading XLSX.",
      "asOf": "2026-11-17"
    },
    "F145": {
      "label": "Library name, exceljs",
      "display": "exceljs",
      "asOf": "2026-11-20"
    },
    "F146": {
      "label": "Monthly downloads, exceljs",
      "display": "105.0M",
      "asOf": "2026-11-20"
    },
    "F147": {
      "label": "License, exceljs",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F148": {
      "label": "Package release, exceljs",
      "display": "4.4.0",
      "asOf": "2026-11-20"
    },
    "F149": {
      "label": "Package release date, exceljs",
      "display": "Oct 2023",
      "asOf": "2026-11-20"
    },
    "F150": {
      "label": "Install, exceljs",
      "display": "npm install exceljs",
      "asOf": "2026-11-20"
    },
    "F151": {
      "label": "Quickstart, exceljs",
      "display": "const ExcelJS = require('exceljs');\nconst workbook = new ExcelJS.Workbook();\nworkbook.addWorksheet('Sheet1');\nawait workbook.xlsx.writeFile('output.xlsx');\n",
      "asOf": "2026-11-20"
    },
    "F152": {
      "label": "Repository stars, exceljs",
      "display": "15.5K",
      "asOf": "2026-11-20"
    },
    "F153": {
      "label": "Read existing XLSX, exceljs",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F154": {
      "label": "Write XLSX, exceljs",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F155": {
      "label": "Row streaming, exceljs",
      "display": "Node streaming workbook writer and reader",
      "asOf": "2026-11-20"
    },
    "F156": {
      "label": "Project function, exceljs",
      "display": "async editRange(path: string, range: string, content: any, options?: Record<string, any>): Promise<EditResult> {\n        // Verify file exists and check size\n        try {\n            await this.checkFileSize(path);\n        } catch (error) {\n            if ((error as any).code === 'ENOENT' ||\n                (error instanceof Error && error.message.includes('ENOENT'))) {\n                throw new Error(`File not found: ${path}`);\n            }\n            throw error;\n        }\n\n        // Validate content\n        if (!Array.isArray(content)) {\n            throw new Error('Content must be a 2D array for range editing');\n        }\n\n        // Parse range: \"Sheet1!A1:C10\" or \"Sheet1\"\n        const [sheetName, cellRange] = this.parseRange(range);\n\n        const workbook = await newWorkbook();\n        await workbook.xlsx.readFile(path);\n\n        // Get or create sheet\n        let worksheet = workbook.getWorksheet(sheetName);\n        if (!worksheet) {\n            worksheet = workbook.addWorksheet(sheetName);\n        }\n\n        if (cellRange) {\n            // Write to specific range\n            const { startRow, startCol, endRow, endCol } = this.parseCellRange(cellRange);\n\n            // A FROM:TO range bounds the write: content that doesn't fit is refused\n            // before any cell changes, so no cell outside the range is overwritten\n            if (endRow !== undefined && endCol !== undefined) {\n                const rows = content.length;\n                const columns = Math.max(0, ...content.map((row: unknown) => Array.isArray(row) ? row.length : 0));\n                const rangeRows = endRow - startRow + 1;\n                const rangeColumns = endCol - startCol + 1;\n                if (rows > rangeRows || columns > rangeColumns) {\n                    throw new Error(\n                        `Content has ${rows} row(s) and ${columns} column(s) but range ${cellRange} holds ` +\n                        `${rangeRows} row(s) and ${rangeColumns} column(s); nothing was written`\n                    );\n                }\n            }\n\n            for (let r = 0; r < content.length; r++) {\n                const rowData = content[r];\n                if (!Array.isArray(rowData)) continue;\n\n                for (let c = 0; c < rowData.length; c++) {\n                    const cell = worksheet.getCell(startRow + r, startCol + c);\n                    const value = rowData[c];\n\n                    if (typeof value === 'string' && value.startsWith('=')) {\n                        cell.value = { formula: value.substring(1) };\n                    } else {\n                        cell.value = value;\n                    }\n                }\n            }\n        } else {\n            // Replace entire sheet content\n            // Clear existing data\n            worksheet.eachRow((row, rowNumber) => {\n                row.eachCell((cell) => {\n                    cell.value = null;\n                });\n            });\n\n            // Write new data\n            for (let r = 0; r < content.length; r++) {\n                const rowData = content[r];\n                if (!Array.isArray(rowData)) continue;\n\n                const row = worksheet.getRow(r + 1);\n                for (let c = 0; c < rowData.length; c++) {\n                    const value = rowData[c];\n                    if (typeof value === 'string' && value.startsWith('=')) {\n                        row.getCell(c + 1).value = { formula: value.substring(1) };\n                    } else {\n                        row.getCell(c + 1).value = value;\n                    }\n                }\n                row.commit();\n            }\n        }\n\n        await workbook.xlsx.writeFile(path);\n\n        return { success: true, editsApplied: 1 };\n    }\n",
      "asOf": "2026-11-20"
    },
    "F157": {
      "label": "Project source file, exceljs",
      "display": "src/utils/files/excel.ts",
      "asOf": "2026-11-20"
    },
    "F158": {
      "label": "Project full_name, exceljs",
      "display": "wonderwhy-er/DesktopCommanderMCP",
      "asOf": "2026-11-20"
    },
    "F159": {
      "label": "Project stargazers_count, exceljs",
      "display": "10.4K",
      "asOf": "2026-11-20"
    },
    "F160": {
      "label": "Library name, xlsx",
      "display": "xlsx",
      "asOf": "2026-11-20"
    },
    "F161": {
      "label": "Monthly downloads, xlsx",
      "display": "60.5M",
      "asOf": "2026-11-20"
    },
    "F162": {
      "label": "License, xlsx",
      "display": "Apache-2.0",
      "asOf": "2026-11-20"
    },
    "F163": {
      "label": "Package release, xlsx",
      "display": "0.20.3",
      "asOf": "2026-11-20"
    },
    "F164": {
      "label": "Package release date, xlsx",
      "display": "Jul 2024",
      "asOf": "2026-11-20"
    },
    "F165": {
      "label": "Install, xlsx",
      "display": "npm install https://cdn.sheetjs.com/xlsx-0.20.3/xlsx-0.20.3.tgz",
      "asOf": "2026-11-20"
    },
    "F166": {
      "label": "Quickstart, xlsx",
      "display": "const XLSX = require('xlsx');\nconst workbook = XLSX.utils.book_new();\nconst sheet = XLSX.utils.aoa_to_sheet([['Name'], ['Ada']]);\nXLSX.utils.book_append_sheet(workbook, sheet, 'Sheet1');\nXLSX.writeFile(workbook, 'output.xlsx');\n",
      "asOf": "2026-11-20"
    },
    "F167": {
      "label": "Repository stars, xlsx",
      "display": "36.3K",
      "asOf": "2026-11-20"
    },
    "F168": {
      "label": "Read existing XLSX, xlsx",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F169": {
      "label": "Write XLSX, xlsx",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F170": {
      "label": "Distribution, xlsx",
      "display": "Publisher CE0.20.3; npm xlsx remains0.18.5",
      "asOf": "2026-11-20"
    },
    "F171": {
      "label": "Node ESM prerequisites, xlsx",
      "display": "Manual filesystem wiring",
      "asOf": "2026-11-20"
    },
    "F172": {
      "label": "Project function, xlsx",
      "display": "_final(callback) {\n    const workbook = createWorkbook(this.fileName);\n    const existingLower = new Set(workbook.SheetNames.map((n) => n.toLowerCase()));\n    const base = (this.sheetName || 'Sheet 1').substring(0, MAX_SHEET_NAME_LENGTH);\n    let sheetName = base;\n    if (existingLower.has(sheetName.toLowerCase())) {\n      let counter = 1;\n      do {\n        const suffix = `_${counter}`;\n        sheetName = base.substring(0, MAX_SHEET_NAME_LENGTH - suffix.length) + suffix;\n        counter++;\n      } while (existingLower.has(sheetName.toLowerCase()));\n    }\n    xlsx.utils.book_append_sheet(workbook, xlsx.utils.aoa_to_sheet(this.rows), sheetName);\n    callback();\n  }\n",
      "asOf": "2026-11-20"
    },
    "F173": {
      "label": "Project source file, xlsx",
      "display": "plugins/dbgate-plugin-excel/src/backend/writer.js",
      "asOf": "2026-11-20"
    },
    "F174": {
      "label": "Project full_name, xlsx",
      "display": "dbgate/dbgate",
      "asOf": "2026-11-20"
    },
    "F175": {
      "label": "Project stargazers_count, xlsx",
      "display": "7.4K",
      "asOf": "2026-11-20"
    },
    "F176": {
      "label": "Library name, read-excel-file",
      "display": "read-excel-file",
      "asOf": "2026-11-20"
    },
    "F177": {
      "label": "Monthly downloads, read-excel-file",
      "display": "19.6M",
      "asOf": "2026-11-20"
    },
    "F178": {
      "label": "License, read-excel-file",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F179": {
      "label": "Package release, read-excel-file",
      "display": "9.3.17",
      "asOf": "2026-11-20"
    },
    "F180": {
      "label": "Package release date, read-excel-file",
      "display": "Nov 2026",
      "asOf": "2026-11-20"
    },
    "F181": {
      "label": "Install, read-excel-file",
      "display": "npm install read-excel-file",
      "asOf": "2026-11-20"
    },
    "F182": {
      "label": "Quickstart, read-excel-file",
      "display": "import { readSheet } from 'read-excel-file/node';\nconst rows = await readSheet('./input.xlsx');\n",
      "asOf": "2026-11-20"
    },
    "F183": {
      "label": "Repository stars, read-excel-file",
      "display": "331",
      "asOf": "2026-11-20"
    },
    "F184": {
      "label": "Read existing XLSX, read-excel-file",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F185": {
      "label": "Write XLSX, read-excel-file",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F186": {
      "label": "Current return shape, read-excel-file",
      "display": "Default: all sheets; readSheet: one 2D sheet",
      "asOf": "2026-11-20"
    },
    "F187": {
      "label": "Current imports, read-excel-file",
      "display": "Explicit /node, /browser, or /universal",
      "asOf": "2026-11-20"
    },
    "F188": {
      "label": "Project function, read-excel-file",
      "display": "export async function readXlsxWorkbook(file: Blob | ArrayBuffer): Promise<XlsxSheet[]> {\n  // Loaded here, not at the top of the module: the dialog is on a route the\n  // SPA needs anyway, and this library is only needed once a workbook is\n  // chosen. Vite puts it in a chunk of its own.\n  const { default: readXlsxFile } = await import('read-excel-file/browser')\n  const sheets = await readXlsxFile<NumericText>(file, {\n    // The pass-through that keeps the cell's own text: the library would\n    // otherwise parse the value into a Number, and `Number` then decides how\n    // many digits a phone number has.\n    parseNumber: (text) => ({ numericText: text }),\n  })\n  // A workbook with no worksheet is not one to map columns against, and the\n  // caller has nothing to show for it — better refused than opened empty.\n  if (sheets.length === 0) throw new Error('the workbook has no sheets')\n  return sheets.map((sheet) => ({ name: sheet.sheet, table: tableOf(sheet.data as SheetRow[]) }))\n}\n",
      "asOf": "2026-11-20"
    },
    "F189": {
      "label": "Project source file, read-excel-file",
      "display": "web/src/lib/xlsx.ts",
      "asOf": "2026-11-20"
    },
    "F190": {
      "label": "Project full_name, read-excel-file",
      "display": "rasonyang/ai-native-callcenter",
      "asOf": "2026-11-20"
    },
    "F191": {
      "label": "Project stargazers_count, read-excel-file",
      "display": "696",
      "asOf": "2026-11-20"
    },
    "F192": {
      "label": "Library name, write-excel-file",
      "display": "write-excel-file",
      "asOf": "2026-11-20"
    },
    "F193": {
      "label": "Monthly downloads, write-excel-file",
      "display": "10.0M",
      "asOf": "2026-11-20"
    },
    "F194": {
      "label": "License, write-excel-file",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F195": {
      "label": "Package release, write-excel-file",
      "display": "4.1.1",
      "asOf": "2026-11-20"
    },
    "F196": {
      "label": "Package release date, write-excel-file",
      "display": "Jun 2026",
      "asOf": "2026-11-20"
    },
    "F197": {
      "label": "Install, write-excel-file",
      "display": "npm install write-excel-file",
      "asOf": "2026-11-20"
    },
    "F198": {
      "label": "Quickstart, write-excel-file",
      "display": "import writeExcelFile from 'write-excel-file/node';\nconst sheetData = [['Name'], ['Ada']];\nawait writeExcelFile(sheetData).toFile('./output.xlsx');\n",
      "asOf": "2026-11-20"
    },
    "F199": {
      "label": "Official description, write-excel-file",
      "display": "Write simple `*.xlsx` files in a browser or Node.js",
      "asOf": "2026-11-20"
    },
    "F200": {
      "label": "Quickstart source file, write-excel-file",
      "display": "README.md",
      "asOf": "2026-11-20"
    },
    "F201": {
      "label": "Repository stars, write-excel-file",
      "display": "36",
      "asOf": "2026-11-20"
    },
    "F202": {
      "label": "Read existing XLSX, write-excel-file",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F203": {
      "label": "Write XLSX, write-excel-file",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F204": {
      "label": "Current output shape, write-excel-file",
      "display": "Output object: .toFile/.toBuffer/.toBlob/.toStream",
      "asOf": "2026-11-20"
    },
    "F205": {
      "label": "Styling, write-excel-file",
      "display": "Cell format, backgroundColor, fonts, and borders",
      "asOf": "2026-11-20"
    },
    "F206": {
      "label": "Project function, write-excel-file",
      "display": "const exportExcel = async<TRow extends Record<string, unknown>>({\n  header,\n  fields,\n  rows,\n  filename,\n  // Resolved per call, like the rest: this is a destructuring default, so it\n  // runs when exportExcel does rather than when the module loaded.\n  confirmText = i18n.global.t('composables.export.confirm')\n}: ExportOptions<TRow>): Promise<boolean> => {\n  if (pending) return false\n  if (!rows.length) return false\n\n  pending = true\n  try {\n    if (confirmText !== null) {\n      try {\n        await ElMessageBox.confirm(confirmText, i18n.global.t('common.notice'), {\n          type: 'warning',\n          confirmButtonText: i18n.global.t('common.confirm'),\n          cancelButtonText: i18n.global.t('common.cancel')\n        })\n      } catch {\n        // Dismissing the confirm is a decision, not a failure\n        return false\n      }\n    }\n\n    exporting.value = true\n    const { data, columns } = buildSheet(header, rows.map(row => fields.map(field => row[field])))\n\n    // The browser entry, not the package root: the root offers none, and the\n    // node one reaches for fs.\n    const { default: writeXlsxFile } = await import('write-excel-file/browser')\n    await writeXlsxFile(data, {\n      sheet: 'Sheet1',\n      columns,\n      dateFormat: DATE_FORMAT\n    }).toFile(`${filename}.xlsx`)\n    return true\n  } finally {\n    pending = false\n    exporting.value = false\n  }\n}\n",
      "asOf": "2026-11-20"
    },
    "F207": {
      "label": "Project source file, write-excel-file",
      "display": "src/composables/useExport.ts",
      "asOf": "2026-11-20"
    },
    "F208": {
      "label": "Project full_name, write-excel-file",
      "display": "go-admin-team/go-admin-ui",
      "asOf": "2026-11-20"
    },
    "F209": {
      "label": "Project stargazers_count, write-excel-file",
      "display": "1.3K",
      "asOf": "2026-11-20"
    },
    "F210": {
      "label": "Library name, xlsx-js-style",
      "display": "xlsx-js-style",
      "asOf": "2026-11-20"
    },
    "F211": {
      "label": "Monthly downloads, xlsx-js-style",
      "display": "4.6M",
      "asOf": "2026-11-20"
    },
    "F212": {
      "label": "License, xlsx-js-style",
      "display": "Apache-2.0",
      "asOf": "2026-11-20"
    },
    "F213": {
      "label": "Package release, xlsx-js-style",
      "display": "1.2.0",
      "asOf": "2026-11-20"
    },
    "F214": {
      "label": "Package release date, xlsx-js-style",
      "display": "Apr 2022",
      "asOf": "2026-11-20"
    },
    "F215": {
      "label": "Install, xlsx-js-style",
      "display": "npm install xlsx-js-style",
      "asOf": "2026-11-20"
    },
    "F216": {
      "label": "Quickstart, xlsx-js-style",
      "display": "const XLSX = require('xlsx-js-style');\nconst workbook = XLSX.utils.book_new();\nconst sheet = XLSX.utils.aoa_to_sheet([[{ v: 'Name', t: 's', s: { font: { bold: true } } }]]);\nXLSX.utils.book_append_sheet(workbook, sheet, 'Sheet1');\nXLSX.writeFile(workbook, 'output.xlsx');\n",
      "asOf": "2026-11-20"
    },
    "F217": {
      "label": "Official description, xlsx-js-style",
      "display": "SheetJS Spreadsheet Community Edition plus Basic Cell Styles",
      "asOf": "2026-11-20"
    },
    "F218": {
      "label": "Quickstart source file, xlsx-js-style",
      "display": "README.md",
      "asOf": "2026-11-20"
    },
    "F219": {
      "label": "Repository stars, xlsx-js-style",
      "display": "513",
      "asOf": "2026-11-20"
    },
    "F220": {
      "label": "Read existing XLSX, xlsx-js-style",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F221": {
      "label": "Write XLSX, xlsx-js-style",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F222": {
      "label": "Styling fork baseline, xlsx-js-style",
      "display": "SheetJS0.18.5 plus font/fill/border/alignment styling",
      "asOf": "2026-11-20"
    },
    "F223": {
      "label": "Project function, xlsx-js-style",
      "display": "export const exportFile = async (tableData: TableData, type: 'csv' | 'xlsx') => {\n  if (!tableData?.rows || tableData.rows.length === 0) {\n    return;\n  }\n\n  const { saveAs } = await import('file-saver');\n\n  if (type === 'xlsx') {\n    const XLSX = await import('xlsx-js-style');\n\n    const wb = XLSX.utils.book_new();\n    const ws = XLSX.utils.aoa_to_sheet([tableData.columnNames, ...tableData.rows]);\n    XLSX.utils.book_append_sheet(wb, ws, 'Sheet1');\n\n    const excelBuffer = XLSX.write(wb, {\n      bookType: 'xlsx',\n      type: 'array'\n    });\n\n    const blob = new Blob([excelBuffer], { type: EXCEL_TYPE });\n    saveAs(blob, `export${EXCEL_EXTENSION}`);\n  } else {\n    const separator = ',';\n    const header = tableData.columnNames.join(separator);\n    const rows = tableData.rows.map(row => row.join(separator));\n    const content = [header, ...rows].join('\\n');\n\n    // Excel reads a CSV without a BOM in the system code page, garbling non-ASCII data. The\n    // Angular and classic exports write one for the same reason (ZEPPELIN-672).\n    const BOM = '\\uFEFF';\n    const blob = new Blob([BOM, content], { type: 'text/plain;charset=utf-8' });\n    saveAs(blob, `export.${type}`);\n  }\n};\n",
      "asOf": "2026-11-20"
    },
    "F224": {
      "label": "Project source file, xlsx-js-style",
      "display": "zeppelin-web-angular/projects/zeppelin-react/src/utils/exportFile.ts",
      "asOf": "2026-11-20"
    },
    "F225": {
      "label": "Project full_name, xlsx-js-style",
      "display": "apache/zeppelin",
      "asOf": "2026-11-20"
    },
    "F226": {
      "label": "Project stargazers_count, xlsx-js-style",
      "display": "6.7K",
      "asOf": "2026-11-20"
    },
    "F227": {
      "label": "Library name, node-xlsx",
      "display": "node-xlsx",
      "asOf": "2026-11-20"
    },
    "F228": {
      "label": "Monthly downloads, node-xlsx",
      "display": "2.0M",
      "asOf": "2026-11-20"
    },
    "F229": {
      "label": "License, node-xlsx",
      "display": "Apache-2.0",
      "asOf": "2026-11-20"
    },
    "F230": {
      "label": "Package release, node-xlsx",
      "display": "0.25.0",
      "asOf": "2026-11-20"
    },
    "F231": {
      "label": "Package release date, node-xlsx",
      "display": "Nov 2026",
      "asOf": "2026-11-20"
    },
    "F232": {
      "label": "Install, node-xlsx",
      "display": "npm install node-xlsx",
      "asOf": "2026-11-20"
    },
    "F233": {
      "label": "Quickstart, node-xlsx",
      "display": "import xlsx from 'node-xlsx';\nconst sheets = xlsx.parse('./input.xlsx');\n",
      "asOf": "2026-11-20"
    },
    "F234": {
      "label": "Official description, node-xlsx",
      "display": "NodeJS Excel files parser & builder",
      "asOf": "2026-11-20"
    },
    "F235": {
      "label": "Quickstart source file, node-xlsx",
      "display": "README.md",
      "asOf": "2026-11-20"
    },
    "F236": {
      "label": "Repository stars, node-xlsx",
      "display": "3.0K",
      "asOf": "2026-11-20"
    },
    "F237": {
      "label": "Read existing XLSX, node-xlsx",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F238": {
      "label": "Write XLSX, node-xlsx",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F239": {
      "label": "Implementation boundary, node-xlsx",
      "display": "Node wrapper bundling SheetJS CE0.20.3",
      "asOf": "2026-11-20"
    },
    "F240": {
      "label": "Project function, node-xlsx",
      "display": "/**\n * 写入excel\n * @param {Array} data\n * @param {string} name\n */\nfunction writeXML(data, name) {\n  let buffer = xlsx.build([\n    {\n      name: \"抽奖结果\",\n      data: data\n    }\n  ]);\n\n  return new Promise((resolve, reject) => {\n    fs.writeFile(path.join(process.cwd(), name), buffer, err => {\n      if (err) {\n        reject(err);\n        return;\n      }\n      resolve();\n    });\n  });\n}\n",
      "asOf": "2026-11-20"
    },
    "F241": {
      "label": "Project source file, node-xlsx",
      "display": "server/help.js",
      "asOf": "2026-11-20"
    },
    "F242": {
      "label": "Project full_name, node-xlsx",
      "display": "moshang-ax/lottery",
      "asOf": "2026-11-20"
    },
    "F243": {
      "label": "Project stargazers_count, node-xlsx",
      "display": "4.6K",
      "asOf": "2026-11-20"
    },
    "F244": {
      "label": "Library name, xlsx-populate",
      "display": "xlsx-populate",
      "asOf": "2026-11-20"
    },
    "F245": {
      "label": "Monthly downloads, xlsx-populate",
      "display": "1.1M",
      "asOf": "2026-11-20"
    },
    "F246": {
      "label": "License, xlsx-populate",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F247": {
      "label": "Package release, xlsx-populate",
      "display": "1.21.0",
      "asOf": "2026-11-20"
    },
    "F248": {
      "label": "Package release date, xlsx-populate",
      "display": "Mar 2020",
      "asOf": "2026-11-20"
    },
    "F249": {
      "label": "Install, xlsx-populate",
      "display": "npm install xlsx-populate",
      "asOf": "2026-11-20"
    },
    "F250": {
      "label": "Quickstart, xlsx-populate",
      "display": "const XlsxPopulate = require('xlsx-populate');\nconst workbook = await XlsxPopulate.fromBlankAsync();\nworkbook.sheet(0).cell('A1').value('Hello');\nawait workbook.toFileAsync('./output.xlsx');\n",
      "asOf": "2026-11-20"
    },
    "F251": {
      "label": "Repository stars, xlsx-populate",
      "display": "1.0K",
      "asOf": "2026-11-20"
    },
    "F252": {
      "label": "Read existing XLSX, xlsx-populate",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F253": {
      "label": "Write XLSX, xlsx-populate",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F254": {
      "label": "Encryption, xlsx-populate",
      "display": "Password-based read and write",
      "asOf": "2026-11-20"
    },
    "F255": {
      "label": "Formula calculation, xlsx-populate",
      "display": "Reads cached results; does not calculate formulas",
      "asOf": "2026-11-20"
    },
    "F256": {
      "label": "Project function, xlsx-populate",
      "display": "async function parseXLSX(file: File): Promise<Result> {\n  const buffer = await readFile(file);\n  try {\n    const sheet = XLSX.read(buffer, { type: \"binary\" });\n    const json = XLSX.utils.sheet_to_json<string[]>(sheet.Sheets[sheet.SheetNames[0]], {\n      header: 1,\n      blankrows: false,\n      rawNumbers: false\n    });\n    return { data: json };\n  } catch (e) {\n    if (/password-protected/.test(e.message)) {\n      const password = prompt(\n        \"Please enter the password to open this XLSX file. Press cancel to exit.\"\n      );\n      if (password === null) {\n        return { data: [], error: \"Password required.\" };\n      }\n\n      try {\n        const workbook = await XlsxPopulate.fromDataAsync(buffer, { password });\n        const sheet = workbook.sheet(0);\n        if (sheet) {\n          let json = sheet.usedRange().value();\n          json = _.map(json, (row) => {\n            return _.map(row, (cell) => {\n              if (cell) {\n                return cell.toString();\n              }\n              return \"\";\n            });\n          });\n\n          return { data: json };\n        }\n      } catch (e) {\n        // follow through to the error below\n      }\n\n      return { data: [], error: \"Unable to parse Password protected XLSX\" };\n    }\n    throw e;\n  }\n}\n",
      "asOf": "2026-11-20"
    },
    "F257": {
      "label": "Project source file, xlsx-populate",
      "display": "src/lib/spreadsheet.ts",
      "asOf": "2026-11-20"
    },
    "F258": {
      "label": "Project full_name, xlsx-populate",
      "display": "ananthakumaran/paisa",
      "asOf": "2026-11-20"
    },
    "F259": {
      "label": "Project stargazers_count, xlsx-populate",
      "display": "3.2K",
      "asOf": "2026-11-20"
    },
    "F260": {
      "label": "Library name, excel4node",
      "display": "excel4node",
      "asOf": "2026-11-20"
    },
    "F261": {
      "label": "Monthly downloads, excel4node",
      "display": "536.2K",
      "asOf": "2026-11-20"
    },
    "F262": {
      "label": "License, excel4node",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F263": {
      "label": "Package release, excel4node",
      "display": "1.8.2",
      "asOf": "2026-11-20"
    },
    "F264": {
      "label": "Package release date, excel4node",
      "display": "May 2023",
      "asOf": "2026-11-20"
    },
    "F265": {
      "label": "Install, excel4node",
      "display": "npm install excel4node",
      "asOf": "2026-11-20"
    },
    "F266": {
      "label": "Quickstart, excel4node",
      "display": "const xl = require('excel4node');\nconst workbook = new xl.Workbook();\nconst sheet = workbook.addWorksheet('Sheet1');\nsheet.cell(1, 1).string('Hello');\nworkbook.write('output.xlsx');\n",
      "asOf": "2026-11-20"
    },
    "F267": {
      "label": "Official description, excel4node",
      "display": "Library to create Formatted Excel Files.",
      "asOf": "2026-11-20"
    },
    "F268": {
      "label": "Quickstart source file, excel4node",
      "display": "README.md",
      "asOf": "2026-11-20"
    },
    "F269": {
      "label": "Repository stars, excel4node",
      "display": "135",
      "asOf": "2026-11-20"
    },
    "F270": {
      "label": "Read existing XLSX, excel4node",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F271": {
      "label": "Write XLSX, excel4node",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F272": {
      "label": "Styled Node generation, excel4node",
      "display": "Styles, formulas, worksheet layout, and images",
      "asOf": "2026-11-20"
    },
    "F273": {
      "label": "Project function, excel4node",
      "display": "export default function generateBufferExcel(contacts: UserContact[]) {\n  const ws = wb.addWorksheet('Report', options);\n  const titles = Object.keys(contacts[0]);\n\n  titles.forEach((title, i) => {\n    const capitalized = title[0].toUpperCase() + title.slice(1);\n    ws.cell(1, i + 1)\n      .string(capitalized)\n      .style(style);\n  });\n\n  contacts.forEach((item, i) => {\n    const values = Object.values(item);\n    values.forEach((value, j) => {\n      ws.cell(i + 2, j + 1)\n        .string(String(value))\n        .style(style);\n    });\n  });\n\n  return wb.writeToBuffer();\n}\n",
      "asOf": "2026-11-20"
    },
    "F274": {
      "label": "Project source file, excel4node",
      "display": "modules/reports/server-ts/excel/helpers/generateExcel.ts",
      "asOf": "2026-11-20"
    },
    "F275": {
      "label": "Project full_name, excel4node",
      "display": "sysgears/apollo-universal-starter-kit",
      "asOf": "2026-11-20"
    },
    "F276": {
      "label": "Project stargazers_count, excel4node",
      "display": "1.7K",
      "asOf": "2026-11-20"
    },
    "F277": {
      "label": "What, write-excel-file",
      "display": "Creates an XLSX file from rows of cell values in a browser or Node.js.",
      "asOf": "2026-11-17"
    },
    "F278": {
      "label": "Strength lead, write-excel-file",
      "display": "Takes plain arrays of rows",
      "asOf": "2026-11-17"
    },
    "F279": {
      "label": "Strength body, write-excel-file",
      "display": "Each cell holds a string, number, boolean, date, or null.",
      "asOf": "2026-11-17"
    },
    "F280": {
      "label": "Watch out lead, write-excel-file",
      "display": "Needs a recent Node.js",
      "asOf": "2026-11-17"
    },
    "F281": {
      "label": "Watch out body, write-excel-file",
      "display": "The current release drops support for older Node.js versions.",
      "asOf": "2026-11-17"
    },
    "F282": {
      "label": "What, xlsx-js-style",
      "display": "Adds basic cell styling to SheetJS for creating Excel spreadsheets.",
      "asOf": "2026-11-17"
    },
    "F283": {
      "label": "Strength lead, xlsx-js-style",
      "display": "Styles fonts, fills, and borders",
      "asOf": "2026-11-17"
    },
    "F284": {
      "label": "Strength body, xlsx-js-style",
      "display": "A style object on each cell sets alignment, border, fill, font, and number format.",
      "asOf": "2026-11-17"
    },
    "F285": {
      "label": "Watch out lead, xlsx-js-style",
      "display": "Built on an older SheetJS",
      "asOf": "2026-11-17"
    },
    "F286": {
      "label": "Watch out body, xlsx-js-style",
      "display": "The bundled SheetJS core trails the current SheetJS release.",
      "asOf": "2026-11-17"
    },
    "F287": {
      "label": "What, node-xlsx",
      "display": "Parses and builds Excel files in Node.js on top of SheetJS.",
      "asOf": "2026-11-17"
    },
    "F288": {
      "label": "Strength lead, node-xlsx",
      "display": "Typed API",
      "asOf": "2026-11-17"
    },
    "F289": {
      "label": "Strength body, node-xlsx",
      "display": "The package ships TypeScript types for static type checking.",
      "asOf": "2026-11-17"
    },
    "F290": {
      "label": "What, excel4node",
      "display": "Generates XLSX files with styles, formulas, and multiple worksheets.",
      "asOf": "2026-11-17"
    },
    "F291": {
      "label": "Strength lead, excel4node",
      "display": "Reusable cell styles",
      "asOf": "2026-11-17"
    },
    "F292": {
      "label": "Strength body, excel4node",
      "display": "createStyle defines a style that many cells can share.",
      "asOf": "2026-11-17"
    }
  },
  "dataCheckedAt": "2026-11-20",
  "agent": {
    "exaCall": {
      "endpoint": "/search",
      "body": {
        "query": "Best JavaScript Excel libraries ExcelJS SheetJS xlsx-populate read-excel-file code examples",
        "numResults": 5
      },
      "docsUrl": "https://exa.ai/docs/reference/search"
    },
    "calls": []
  }
}
