mtg-tourney-parser

0.2.0 • Public • Published

MTG-Tourney-Parser

This module is designed for parse pdfs that have been generated by Wizards Event Reporter 4. This should enable data to be presented in more accessible formats.

Dependencies

mtg-tourney-parser uses pdf-text-extract, which depends on the pdftotext binary.

On Debian / Ubuntu, the poppler-utils is a package that provides this.

To use this package on Heroku, add poppler-utils to an Aptfile in the root of your project, then tell heroku you want to install those prior to your application startup :

heroku buildpacks:set https://github.com/heroku/heroku-buildpack-multi.git -a NAME_OF_YOUR_HEROKU_APP

You'll also need a .buildpacks file to declare which buildpacks you'd like to use:

https://github.com/ddollar/heroku-buildpack-apt.git
https://github.com/heroku/heroku-buildpack-nodejs.git

Usage

var parser = require('mtg-tourney-parser')
var path = require('path')
 
parser( path.join(__dirname, 'test/example_round_listing.pdf'), (err, data) => {
  if (err) console.error(err)
 
  console.log('success!', data)
})

Package Sidebar

Install

npm i mtg-tourney-parser

Weekly Downloads

0

Version

0.2.0

License

MIT

Last publish

Collaborators

  • mixmix