@mazix/n8n-nodes-converter-documents
Version:
n8n node to convert various document formats (DOCX, XML, YML, XLS, XLSX, CSV, PDF, TXT, PPT, PPTX, HTML, JSON, ODT, ODP, ODS) to JSON or text format
44 lines (43 loc) • 1.12 kB
TypeScript
import { IExecuteFunctions } from 'n8n-workflow';
/**
* Custom n8n node: convert files to JSON/text
* Supports DOCX, XML, YML, XLSX, CSV, PDF, TXT, PPTX, HTML
*/
declare class FileToJsonNode {
description: {
displayName: string;
name: string;
icon: string;
group: string[];
version: number;
description: string;
defaults: {
name: string;
};
inputs: string[];
outputs: string[];
properties: ({
displayName: string;
name: string;
type: string;
default: string;
description: string;
typeOptions?: undefined;
} | {
displayName: string;
name: string;
type: string;
default: number;
description: string;
typeOptions: {
minValue: number;
maxValue: number;
};
})[];
};
/**
* Main execution method for n8n node
*/
execute(this: IExecuteFunctions): Promise<unknown[]>;
}
export { FileToJsonNode };