How to use the exceljs/dist/es5/exceljs.browser.Workbook function in exceljs

To help you get started, we’ve selected a few exceljs examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github JackGit / table2excel.js / src / table2excel.js View on Github external
toExcel () {
    const { tables, options } = this
    const workbook = new ExcelJS.Workbook() // create workbook

    Object.assign(workbook, options)

    // workbookCreated plugins
    this._invokePlugin('workbookCreated', { workbook, tables })

    tables.forEach((table, index) => {
      const worksheet = workbook.addWorksheet(`Sheet ${index + 1}`)

      // worksheetCreated plugins
      this._invokePlugin('worksheetCreated', { worksheet, table })

      this.toSheet(table, worksheet)

      // worksheetCompleted plugins
      this._invokePlugin('worksheetCompleted', { worksheet, table })

exceljs

Excel Workbook Manager - Read and Write xlsx and csv Files.

MIT
Latest version published 7 months ago

Package Health Score

78 / 100
Full package analysis