UNPKG

docxtemplater

Version:

Generate docx, pptx, and xlsx from templates (Word, Powerpoint and Excel documents), from Node.js, the Browser and the command line

18 lines (14 loc) 456 B
import { DXT } from "./docxtemplater"; declare class TxtTemplater { static default: typeof TxtTemplater; /** * Create TxtTemplater instance (and compile it on the fly) * * @param content the template that you want to use * @param options `modules` and other options */ constructor(content: string, options?: DXT.ConstructorOptions); render(data?: any): string; renderAsync(data?: any): Promise<string>; } export = TxtTemplater;