Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Seems simply broken #7

Open
nethermead opened this issue Jul 10, 2018 · 4 comments
Open

Seems simply broken #7

nethermead opened this issue Jul 10, 2018 · 4 comments

Comments

@nethermead
Copy link

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.

@balajilinks
Copy link
Contributor

Send a pull request to solve this problem
#8

@sachidhanandhan
Copy link

just change the function name in processing.js and try. It works for me

lookup() renamed to getType()
extension() renamed to getExtension()

@ritesh-hubbler
Copy link

After following the changes which @sachidhanandhan suggested. I changed the code in index.js file.
Change parseit.parseResume => parseit.parseResumeFile
as there is no function in utils/parseit named ResumeFile. That is what the error is saying that there is no such function parseit.parseResume

@n8jadams
Copy link

n8jadams commented Jul 14, 2021

I was able to get things working with the npm code after manually doing the changes listed here:

src/index.js:

  • module.exports.parseResume => module.exports.parseResumeFile
    *parseIt.parseResume => parseIt.parseResumeFile

src/utils/libs/processing.js:

  • mime.lookup => mime.getType
  • mime.extension => mime.getExtension

Also, it's important that you grab the pdftotext binary from here and place it in your $PATH.

@perminder-klair can you publish the latest changes in the repo to npm?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants