UNPKG

read-excel-file

Version:

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

15 lines (13 loc) 269 B
import { Row, Schema, Error, MappingParameters } from '../types.d.js'; export { MappingParameters } from '../types.d.js' export default function map<T>(data: Row[], schema: Schema<T>, options?: MappingParameters): { rows: T[]; errors: Error[]; };