cif-parser

1.4.2 • Public • Published

parser-cif

cif-parser is a node.js module that parses and converts results of bike race published by FFC CIF from PDF to json format, it's built with pdf2json.

The goal is to enable server side parsing.

Install

npm install cif-parser

Code Example

  • Parse a PDF file then write to a JSON file:
    let CIF2JSON = require('cif-parser');
 
    let cifParser = new CIF2JSON("./res/lagny.pdf", "BENICHON");
    cifParser.on("cif_parser_dataReady", competitors => console.log(competitors));
    cifParser.generateJSON();

Dependencies (3)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i cif-parser

    Weekly Downloads

    38

    Version

    1.4.2

    License

    GNU GPL

    Unpacked Size

    585 kB

    Total Files

    12

    Last publish

    Collaborators

    • olivier.cherrier