0.2.0 • Published 7 years ago

mtg-tourney-parser v0.2.0

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

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)
})
0.2.0

7 years ago

0.1.6

7 years ago

0.1.5

8 years ago

0.1.4

8 years ago

0.1.3

8 years ago

0.1.2

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago