# mtg-tourney-parser

> parser for pdfs generated by Wizards Event Reporter 4

Latest version **0.2.0** (published 2017-07-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install mtg-tourney-parser
pnpm add mtg-tourney-parser
yarn add mtg-tourney-parser
bun add mtg-tourney-parser
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.0 |
| Published | 2017-07-07 |
| First published | 2016-07-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | mixmix |
| Maintainers | mixmix |
| Keywords | magic, gathering, mtg, tournament, pdf |

## Links

- npm: https://www.npmjs.com/package/mtg-tourney-parser
- Repository: https://github.com/mixmix/mtg-tourney-parser
- Homepage: https://github.com/mixmix/mtg-tourney-parser#readme
- Issues: https://github.com/mixmix/mtg-tourney-parser/issues
- npm.io page: https://npm.io/package/mtg-tourney-parser

## Dependencies (1)

- [pdf-text-extract](https://npm.io/package/pdf-text-extract.md) ^1.4.1

## Alternatives

- [@cantoo/pdf-lib](https://npm.io/package/@cantoo/pdf-lib.md) — 297.9K weekly downloads
- [datatables.net-buttons](https://npm.io/package/datatables.net-buttons.md) — 200.1K weekly downloads
- [@ckeditor/ckeditor5-export-pdf](https://npm.io/package/@ckeditor/ckeditor5-export-pdf.md) — 167.0K weekly downloads
- [scanbot-web-sdk](https://npm.io/package/scanbot-web-sdk.md) — 15.0K weekly downloads
- [@syncfusion/ej2-angular-pdfviewer](https://npm.io/package/@syncfusion/ej2-angular-pdfviewer.md) — 8.8K weekly downloads

## Recent versions

- 0.2.0 (latest) — 2017-07-07
- 0.1.6 — 2017-07-07
- 0.1.5 — 2016-07-13
- 0.1.4 — 2016-07-11
- 0.1.3 — 2016-07-11
- 0.1.2 — 2016-07-10
- 0.1.1 — 2016-07-02
- 0.1.0 — 2016-07-02

## README

# 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](https://www.npmjs.com/package/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 : 

```bash
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: 

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

## Usage

```js
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)
})
```

---
_Source: https://npm.io/package/mtg-tourney-parser · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
