perminder-klair / resume-parser Goto Github PK
View Code? Open in Web Editor NEWA Simple NodeJs library to parse Resume / CV to JSON.
License: MIT License
A Simple NodeJs library to parse Resume / CV to JSON.
License: MIT License
ResumeParser.parseResumeFile( "./resumes/coolfreecv_resume_en_01.doc", "./resumes/compiled" ) .then((file) => { console.log("Yay! " + file); result.message = file; result.success = true; // fs.unlink(inputPath + fileName); }) .catch((error) => { result.message = error; result.success = false; console.error(error); });
Had issues using the npm version which breaks at parseIt.parseResume undefined.
I changed dependency to pull directly from github but now it breaks at utils/libs/processing.js:120, this.mime = mime.lookup(file)
mime.lookup is not a function.
I'm trying to parse a longish docx resume as a test but giving up and moving on.
Error: antiword read of file named [[ resume.doc ]] failed: Error: Command failed: antiword -m UTF-8.txt "file/resume.doc"
I can't open your mapping file (UTF-8.txt)
It is not in 'C:\Users\ADMIN\antiword' nor in 'C:\antiword'.
lookup() renamed to getType()
extension() renamed to getExtension()
Please fix this issue
Thank you for fixing existing issues. This is exactly what should have been done long time ago and it reflects the meaning of open source ๐
Hi,
my OS is Win 8.1
node -v 10.0.0
even after installing pdf from readme pdftotext
i am getting this error when i figure out the cause it was pdftotext -v in pdf.js in textextract npm when actual installation is xpdf.exe
Could you please provide some solution on same
When this repo updated,"npm install resume-parser" not update as well. Is it problem from npm or from code?
Please audit the npm libraries currently in use.
i need to pass approx 50 resume at once suppose . Then i want to compile all the resume and result should be return in "compiled" file . i am using pdftotext . it have to ittirate over the resumes folder and one by one fetch the filename and start processing it and then compile it . i know its too much to ask but if something is coder enough then please help .
D:\node-projects\resume-extractor>node test.js
2019-12-28T11:11:22+0530 processing.js:72 (extractTextFile) D:\node-projects\resume-extractor/files/1.pdf
D:\node-projects\resume-extractor\src\utils\libs\processing.js:120
this.mime = mime.getType(file);
^TypeError: mime.getType is not a function
at new PreparedFile (D:\node-projects\resume-extractor\src\utils\libs\processing.js:120:20)
at D:\node-projects\resume-extractor\src\utils\libs\processing.js:83:18
at D:\node-projects\resume-extractor\node_modules\textract\lib\extract.js:74:5
at D:\node-projects\resume-extractor\node_modules\textract\lib\extractors\pdf.js:20:5
at splitPages (D:\node-projects\resume-extractor\node_modules\pdf-text-extract\index.js:76:5)
at ChildProcess.closeHandler (D:\node-projects\resume-extractor\node_modules\pdf-text-extract\index.js:106:5)
at ChildProcess.emit (events.js:198:13)
at maybeClose (internal/child_process.js:982:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
When running this code:
const ResumeParser = require('resume-parser');
// From file to file
ResumeParser
.parseResumeFile('./files/resume.doc', './files/compiled') // input file, output dir
.then(file => {
console.log("Yay! " + file);
})
.catch(error => {
console.error(error);
});
I get this error:
TypeError: ResumeParser.parseResumeFile is not a function
at /Users/kylepolich/git/ds/careers/parser/node_test_1/index.js:96:29
at new Promise (<anonymous>)
at parse_text_promise (/Users/kylepolich/git/ds/careers/parser/node_test_1/index.js:94:9)
at /Users/kylepolich/git/ds/careers/parser/node_test_1/index.js:118:10
at <anonymous>
at process._tickDomainCallback (internal/process/next_tick.js:228:7)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.