Installation
npm install --save @types/word-extractor
Summary
This package contains type definitions for word-extractor (https://github.com/morungos/node-word-extractor).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/word-extractor.
index.d.ts
declare class WordExtractor {
extract(documentPath: string | Uint8Array): Promise<WordExtractor.Document>;
}
export = WordExtractor;
declare namespace WordExtractor {
class Document {
getBody(): string;
getFootnotes(): string;
getHeaders(options?: { includeFooters?: boolean | undefined }): string;
getFooters(): string;
getAnnotations(): string;
getTextboxes(
options?: { includeHeadersAndFooters?: boolean | undefined; includeBody?: boolean | undefined },
): string;
getEndnotes(): string;
}
}
Additional Details
- Last updated: Tue, 07 Nov 2023 15:11:36 GMT
- Dependencies: none
Credits
These definitions were written by Rodrigo Saboya.