npm.io
0.1.0 • Published 6 years ago

xlsx-exporter

Licence
ISC
Version
0.1.0
Deps
1
Size
20 kB
Vulns
0
Weekly
0
Stars
2

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
})