Skip to content
This repository has been archived by the owner on Jun 26, 2023. It is now read-only.

Latest commit

 

History

History
16 lines (12 loc) · 416 Bytes

README.md

File metadata and controls

16 lines (12 loc) · 416 Bytes

xlsx-exporter

A simple XLSX exporter for Node.js and browsers, with the goal of being able to export a 2D array directly to an XLSX file.

Usage

import * as xlsx from 'xlsx-exporter';

const worksheet = new xlsx.Worksheet([[1, 'a'], [2, 'b']]);
const workbook = new xlsx.Workbook();
workbook.addWorksheet(worksheet);
workbook.save(function(array) {
  // do something with this Uint8Array
})