@pranavraut033/ats-checker 1.1.1 → 1.2.0
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.
- package/README.md +36 -0
- package/dist/index.js +15 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +15 -0
- package/dist/index.mjs.map +1 -1
- package/dist/pdf/index.d.mts +12 -0
- package/dist/pdf/index.d.ts +12 -0
- package/dist/pdf/index.js +81 -0
- package/dist/pdf/index.js.map +1 -0
- package/dist/pdf/index.mjs +79 -0
- package/dist/pdf/index.mjs.map +1 -0
- package/package.json +18 -3
package/dist/index.mjs
CHANGED
|
@@ -539,6 +539,16 @@ function parseResume(resumeText, config) {
|
|
|
539
539
|
}
|
|
540
540
|
const requiredSections = ["summary", "experience", "skills", "education"];
|
|
541
541
|
const warnings = [];
|
|
542
|
+
const lineCount = splitLines(resumeText).length;
|
|
543
|
+
if (resumeText.trim().length < 100) {
|
|
544
|
+
warnings.push(
|
|
545
|
+
"Almost no text was extracted \u2014 the resume may be a scanned/image PDF. Upload a text-based PDF or paste the text directly."
|
|
546
|
+
);
|
|
547
|
+
} else if (lineCount <= 2) {
|
|
548
|
+
warnings.push(
|
|
549
|
+
"Resume text has no line breaks \u2014 the PDF layout likely didn't export cleanly (common with multi-column designs). Export as a single-column PDF or paste plain text for accurate parsing."
|
|
550
|
+
);
|
|
551
|
+
}
|
|
542
552
|
for (const section of requiredSections) {
|
|
543
553
|
if (!detected.includes(section)) {
|
|
544
554
|
warnings.push(`${section} section not detected`);
|
|
@@ -918,6 +928,11 @@ var SuggestionEngine = class {
|
|
|
918
928
|
"Strengthen bullet points with impact verbs (led, built, improved, delivered)."
|
|
919
929
|
);
|
|
920
930
|
}
|
|
931
|
+
if (input.resume.detectedSections.length < 2 && input.resume.raw.trim().length > 300) {
|
|
932
|
+
suggestions.push(
|
|
933
|
+
"Your resume may use a multi-column layout. Export as a single-column PDF or paste plain text \u2014 most ATS systems and this parser work best with a linear layout."
|
|
934
|
+
);
|
|
935
|
+
}
|
|
921
936
|
return { suggestions, warnings };
|
|
922
937
|
}
|
|
923
938
|
};
|