@papb/json-excel
Version:
Create a pretty Excel table from JSON data with a very simple API
18 lines • 987 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.exportJsonToExcel = void 0;
var json_to_excel_1 = require("./json-to-excel");
Object.defineProperty(exports, "jsonToExcel", { enumerable: true, get: function () { return json_to_excel_1.jsonToExcel; } });
const export_json_to_excel_nodejs_1 = require("./export-json-to-excel-nodejs");
/**
* Export a list of JSON sheets as a XLSX file. Works in Node.js and browsers.
*
* @param destinationNameOrPath In Node.js, the path to the output file (example: `'path/to/generated/file.xlsx'`). In browsers, the name of the file to be downloaded (example: `'generatedFile.xlsx'`).
* @param sheets List of JSON sheets
* @param options Options
*/
async function exportJsonToExcel(destinationNameOrPath, sheets, options) {
await export_json_to_excel_nodejs_1.exportJsonToExcelNodejs(destinationNameOrPath, sheets, options);
}
exports.exportJsonToExcel = exportJsonToExcel;
//# sourceMappingURL=index.js.map