UNPKG

resume-parser-ts

Version:

A TypeScript library for parsing resumes from PDF files

68 lines (64 loc) 1.63 kB
interface ResumeProfile { name: string; email: string; phone: string; url: string; summary: string; location: string; } interface ResumeWorkExperience { company: string; jobTitle: string; date: string; descriptions: string[]; } interface ResumeEducation { school: string; degree: string; date: string; gpa: string; descriptions: string[]; } interface ResumeProject { project: string; date: string; descriptions: string[]; } interface FeaturedSkill { skill: string; rating: number; } interface ResumeSkills { featuredSkills: FeaturedSkill[]; descriptions: string[]; } interface ResumeCustom { descriptions: string[]; } interface Resume { profile: ResumeProfile; workExperiences: ResumeWorkExperience[]; educations: ResumeEducation[]; projects: ResumeProject[]; skills: ResumeSkills; custom: ResumeCustom; } /** * Resume parser util that parses a resume from a resume pdf file * * Note: The parser algorithm only works for single column resume in English language */ declare const parseResumeFromPdf: (fileUrl: string) => Promise<Resume>; interface TextItem { text: string; x: number; y: number; width: number; height: number; fontName: string; hasEOL: boolean; } type TextItems = TextItem[]; type Line = TextItem[]; type Lines = Line[]; export { type FeaturedSkill, type Line, type Lines, type Resume, type ResumeCustom, type ResumeEducation, type ResumeProfile, type ResumeProject, type ResumeSkills, type ResumeWorkExperience, type TextItem, type TextItems, parseResumeFromPdf };