UNPKG

read-excel-file

Version:

Read small to medium `*.xlsx` files in a browser or Node.js. Parse to JSON with a strict schema.

19 lines (17 loc) 659 B
import parseCell from './parseCell.js'; import { getCells, getMergedCells } from '../xml/xlsx.js'; export default function parseCells(sheet, xml, values, styles, properties, options) { var cells = getCells(sheet); if (cells.length === 0) { return []; } // const mergedCells = getMergedCells(sheet) // for (const mergedCell of mergedCells) { // const [from, to] = mergedCell.split(':').map(parseCellCoordinates) // console.log('Merged Cell.', 'From:', from, 'To:', to) // } return cells.map(function (node) { return parseCell(node, sheet, xml, values, styles, properties, options); }); } //# sourceMappingURL=parseCells.js.map