UNPKG

@elbstack/xlsx-populate

Version:

Excel XLSX parser/generator written in JavaScript with Node.js and browser support, jQuery/d3-style method chaining, and a focus on keeping existing workbook features and styles in tact.

15 lines (11 loc) 388 B
"use strict"; const XlsxPopulate = require('../../lib/XlsxPopulate'); // Load the input workbook from file. XlsxPopulate.fromBlankAsync() .then(workbook => { // Modify the workbook. workbook.sheet("Sheet1").cell("A1").value("This is neat!"); // Write to file. return workbook.toFileAsync("./out.xlsx"); }) .catch(err => console.error(err));