@paperjsx/json-to-xlsx
v0.3.0
Published
Generate Excel workbooks from JSON
Maintainers
Readme
PaperJSX XLSX Pro
Generate production Excel .xlsx workbooks from JSON and TypeScript with the paid PaperJSX spreadsheet engine.
Install
npm install @paperjsx/json-to-xlsx-proRequires Node.js >=18 and a valid PAPERJSX_LICENSE_KEY.
Quick Start
import { SpreadsheetEngine } from "@paperjsx/json-to-xlsx-pro";
import { writeFileSync } from "node:fs";
const buffer = await SpreadsheetEngine.render(
{
meta: { title: "Ops Dashboard", creator: "PaperJSX" },
sheets: [
{
name: "Summary",
rows: [
{ cells: [{ value: "Metric" }, { value: "Value" }] },
{ cells: [{ value: "MRR" }, { value: 128000 }] },
{ cells: [{ value: "Churn" }, { value: 0.018 }] },
],
},
],
},
{ licenseKey: process.env.PAPERJSX_LICENSE_KEY },
);
writeFileSync("ops-dashboard.xlsx", buffer);Included In Pro
- production/self-hosted commercial spreadsheet usage
- formula evaluation and quality reporting
- workbook validation, repair, and validate-repair flows
- template parsing, inspection, and assembly
Core API
SpreadsheetEngine.render(document, options?)SpreadsheetEngine.repair(buffer, options?)SpreadsheetEngine.validateAndRepair(buffer, options?)parseTemplate(buffer, options?)assembleFromTemplate(template, data, options?)
Links
- Docs: paperjsx.com/docs
- Pricing: paperjsx.com/pricing
License
Commercial license required. See the packaged LICENSE file.
