UNPKG

docx

Version:

Easily generate .docx files with JS/TS with a nice declarative API. Works for Node and on the Browser.

9 lines (8 loc) 348 B
/// <reference types="node" /> import { File } from "../../file"; export declare class Packer { static toBuffer(file: File, prettify?: boolean): Promise<Buffer>; static toBase64String(file: File, prettify?: boolean): Promise<string>; static toBlob(file: File, prettify?: boolean): Promise<Blob>; private static readonly compiler; }