cif-parser
Advanced tools
+4
-6
@@ -34,5 +34,5 @@ /** | ||
| constructor(pdfBuffer, competitorName, unexpectedBikers, pdfFormat){ | ||
| constructor(pdfFilePath, competitorName, unexpectedBikers, pdfFormat){ | ||
| super(); | ||
| this.pdfBuffer = pdfBuffer; | ||
| this.pdfFilePath = pdfFilePath; | ||
| this.competitorName = competitorName; | ||
@@ -64,3 +64,2 @@ this.unexpectedBikers = unexpectedBikers; | ||
| pdfParser.on("pdfParser_dataReady", pdfData => { | ||
| fs.writeFile("./res/result.json", JSON.stringify(pdfData)); | ||
@@ -94,3 +93,3 @@ /** | ||
| pdfParser.loadPDF(this.pdfBuffer); | ||
| pdfParser.loadPDF(this.pdfFilePath); | ||
| } | ||
@@ -104,3 +103,2 @@ | ||
| pdfParser.on("pdfParser_dataReady", pdfData => { | ||
| fs.writeFile("./res/result.json", JSON.stringify(pdfData)); | ||
@@ -280,3 +278,3 @@ /** | ||
| pdfParser.parseBuffer(this.pdfBuffer); | ||
| pdfParser.loadPDF(this.pdfFilePath); | ||
| } | ||
@@ -283,0 +281,0 @@ |
+1
-1
| { | ||
| "name": "cif-parser", | ||
| "version": "1.3.1", | ||
| "version": "1.3.2", | ||
| "description": "Parse results of bike race published by FFC CIF", | ||
@@ -5,0 +5,0 @@ "main": "main.js", |
512014
-0.03%268
-0.74%