How to use the ssf.get_table function in ssf

To help you get started, we’ve selected a few ssf 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 lambrojos / supersalmon / lib / worksheet.js View on Github external
} catch (e) {
                  workingVal = ''
                }
              } else if (format !== 'General') {
                try {
                  workingVal = ssf.format(format, Number(workingVal))
                } catch (e) {
                  workingVal = ''
                }
              }
            } else if (!isNaN(parseFloat(workingVal))) { // this is number
              workingVal = parseFloat(parseFloat(workingVal)) // parse to float or int
            }
            this.workingRow.values[cellNum] = workingVal || ''
            if (this.workBook.options.returnFormats) {
              this.workingRow.formats[cellNum] = format || ssf.get_table()[formatId]
            }
            workingCell = {}
        }
      }
      if (workingCell.name === 'v') {
        var colNum = this.getColumnNumber(this.currentCell.attributes.r)

        this.currentCell = {}

        this.workingRow.values[colNum] = workingPart || ''
      }
    } else {
      if (this.sheetData[nodeData[0].name]) {
        if (!Array.isArray(this.sheetData[nodeData[0].name])) {
          this.sheetData[nodeData[0].name] = [this.sheetData[nodeData[0].name]]
        }

ssf

Format data using ECMA-376 spreadsheet Format Codes

Apache-2.0
Latest version published 4 years ago

Package Health Score

67 / 100
Full package analysis