UNPKG

@thecodingwhale/cv-processor

Version:

CV Processor to extract structured data from PDF resumes using TypeScript

28 lines (27 loc) 995 B
#!/usr/bin/env node /** * CV Processor CLI - Extract structured data from CV/resume PDFs * * Usage: * npx cv-processor-ts input.pdf * * Output: * Creates a JSON file with the same name (input.json) containing the extracted CV data */ import { AICVProcessor } from './AICVProcessor'; import { CVData } from './types'; import { AIProvider, ConversionType } from './types/AIProvider'; /** * Process a CV PDF and extract structured information using AI * @param pdfPath Path to the PDF file * @param aiProvider AI provider to use for processing * @param options Processing options * @param conversionType Type of conversion to use (default: PdfToTexts) * @returns Promise resolving to structured CV data */ export declare function processCv(pdfPath: string, aiProvider: AIProvider, options?: { verbose?: boolean; instructionsPath?: string; }, conversionType?: ConversionType): Promise<CVData>; export { AICVProcessor, ConversionType }; export type { AIProvider, CVData };