writeConfigSheet()
function writeConfigSheet(workbook, meta): void;
Defined in: src/parser.ts:1077
Write template metadata to the workbook's hidden __config__
sheet, replacing any existing config sheet.
Parameters
| Parameter | Type |
|---|---|
workbook | Workbook |
meta | TemplateMeta |
Returns
void
Stable
Frozen at 1.0 per spec/STABILITY.md "Public API surface".
Example
const wb = new ExcelJS.Workbook();
writeConfigSheet(wb, {
name: 'Invoice', description: '', source_sheet: 'Sheet1',
output_file_pattern: '{{ [거래처] }}.xlsx', match_pattern: '*',
});
const buffer = await wb.xlsx.writeBuffer();