<commit_before># resume-pdf-to-json
A Node module that parses a LinkedIn Resume PDF and returns a JSON Object and/or outputs a JSON file.

LinkedIn Resume's are available on your profile under "View Profile As" > "Save to PDF."

## Installation

```shell
npm install resume-pdf-to-json --save-dev
```

## Usage

### Return JSON
```js

var resumePdfToJson = require('resume-pdf-to-json');

var path = 'data/[FirstLast].pdf';

return resumePdfToJson(path)
    .then(function(data) {
        return {
            'resume': data,
        };
    });

```

### Return JSON + Output JSON File
```js

var resumePdfToJson = require('resume-pdf-to-json');

var path = 'data/[FirstLast].pdf';
var output = 'data/outputname.json';

return resumePdfToJson(path, {'output': output})
    .then(function(data) {
        return {
            'resume': data,
        };
    });

```

### Support
There are multiple sections of the LinkedIn PDF resume output, however, not all of them have been tested. The following sections have been accomodated for;

• Summary
• Experience
• Volunteer Experience
• Skills & Expertise
• Education
• [number] person has recommended [name]
• [number] people have recommended [name]

Better support for various sections may be added in the future.
<commit_msg>fix formatting<commit_after># resume-pdf-to-json
A Node module that parses a LinkedIn Resume PDF and returns a JSON Object and/or outputs a JSON file.

LinkedIn Resume's are available on your profile under "View Profile As" > "Save to PDF."

## Installation

```shell
npm install resume-pdf-to-json --save-dev
```

## Usage

### Return JSON
```js

var resumePdfToJson = require('resume-pdf-to-json');

var path = 'data/[FirstLast].pdf';

return resumePdfToJson(path)
    .then(function(data) {
        return {
            'resume': data,
        };
    });

```

### Return JSON + Output JSON File
```js

var resumePdfToJson = require('resume-pdf-to-json');

var path = 'data/[FirstLast].pdf';
var output = 'data/outputname.json';

return resumePdfToJson(path, {'output': output})
    .then(function(data) {
        return {
            'resume': data,
        };
    });

```

### Support
There are multiple sections of the LinkedIn PDF resume output, however, not all of them have been tested. The following sections have been accomodated for;

* Summary
* Experience
* Volunteer Experience
* Skills & Expertise
* Education
* [number] person has recommended [name]
* [number] people have recommended [name]

Better support for various sections may be added in the future.

{'fraction_non_alphanumeric': 0.12161632012553943, 'fraction_numerical': 0.0, 'mean_word_length': 3.5053003533568905, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7090895', 'n_tokens_mistral': 799, 'n_tokens_neox': 771, 'n_words': 276}