Function: analyze()
function analyze(templateBuffer): Promise<ParsedTemplate>;
Defined in: src/index.ts:303
Analyze a template file and return its full parsed model (including the underlying ExcelJS workbook). Mostly useful for tooling that needs to inspect template internals.
Parameters
| Parameter | Type |
|---|---|
templateBuffer | ArrayBuffer |
Returns
Promise<ParsedTemplate>
Stable
Frozen at 1.0.
Example
const parsed = await analyze(templateBuffer);
console.log(parsed.meta.name, parsed.sheetTemplates.length);