europass / europasscv-parser-js

Parse EuropassCV PDF/XML using JavaScript
MIT License
16 stars 7 forks source link

Usage in Node JS | ReferenceError: window is not defined #10

Closed ghost closed 3 years ago

ghost commented 3 years ago

Basically I'm using this code in index.js:

const fs = require("fs");
var EuropassParser = require('europass-parser');
var file=fs.readFileSync("resume.pdf");
EuropassParser(file);

and executing with node index.js I receive this error:

ReferenceError: window is not defined

Is possible to use the class in a "pure" Node environment? It is documented?