UNPKG

@thecodingwhale/cv-processor

Version:

CV Processor to extract structured data from PDF resumes using TypeScript

36 lines (35 loc) 1.14 kB
/** * CSV Generator class for processing output directories and creating CSV summaries */ export declare class CSVGenerator { /** * Generate CSV summary from a base folder containing subdirectories with JSON files * @param baseFolderPath Path to the base folder */ generateCSV(baseFolderPath: string): Promise<void>; /** * Recursively discover all JSON files in subdirectories * @param basePath Base path to scan * @returns Array of JSON file paths */ private discoverJSONFiles; /** * Extract data from a JSON file and convert to CSV row format * @param filePath Path to the JSON file * @param baseFolderPath Base folder path for relative subdirectory calculation * @returns CSV row data */ private extractDataFromJSON; /** * Write CSV data to file * @param data Array of CSV row data * @param outputPath Output file path */ private writeCSV; /** * Escape CSV values that contain commas, quotes, or newlines * @param value Value to escape * @returns Escaped value */ private escapeCsvValue; }