officeparser 5.2.1 → 6.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,33 +0,0 @@
1
- #!/usr/bin/env node
2
- export type OfficeParserConfig = {
3
- /**
4
- * Flag to show all the logs to console in case of an error irrespective of your own handling. Default is false.
5
- */
6
- outputErrorToConsole?: boolean;
7
- /**
8
- * The delimiter used for every new line in places that allow multiline text like word. Default is \n.
9
- */
10
- newlineDelimiter?: string;
11
- /**
12
- * Flag to ignore notes from parsing in files like powerpoint. Default is false. It includes notes in the parsed text by default.
13
- */
14
- ignoreNotes?: boolean;
15
- /**
16
- * Flag, if set to true, will collectively put all the parsed text from notes at last in files like powerpoint. Default is false. It puts each notes right after its main slide content. If ignoreNotes is set to true, this flag is also ignored.
17
- */
18
- putNotesAtLast?: boolean;
19
- };
20
- /** Main async function with callback to execute parseOffice for supported files
21
- * @param {string | Buffer | ArrayBuffer} srcFile File path or file buffers or Javascript ArrayBuffer
22
- * @param {function} callback Callback function that returns value or error
23
- * @param {OfficeParserConfig} [config={}] [OPTIONAL]: Config Object for officeParser
24
- * @returns {void}
25
- */
26
- export function parseOffice(srcFile: string | Buffer | ArrayBuffer, callback: Function, config?: OfficeParserConfig): void;
27
- /** Main async function that can be used with await to execute parseOffice. Or it can be used with promises.
28
- * @param {string | Buffer | ArrayBuffer} srcFile File path or file buffers or Javascript ArrayBuffer
29
- * @param {OfficeParserConfig} [config={}] [OPTIONAL]: Config Object for officeParser
30
- * @returns {Promise<string>}
31
- */
32
- export function parseOfficeAsync(srcFile: string | Buffer | ArrayBuffer, config?: OfficeParserConfig): Promise<string>;
33
- //# sourceMappingURL=officeParser.d.ts.map