https://github.com/pfirpfel/mtgo-deck-formatter
Formats and checks the format of MTGO txt deck lists
https://github.com/pfirpfel/mtgo-deck-formatter
Last synced: about 1 month ago
JSON representation
Formats and checks the format of MTGO txt deck lists
- Host: GitHub
- URL: https://github.com/pfirpfel/mtgo-deck-formatter
- Owner: pfirpfel
- Created: 2021-05-04T12:40:22.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2025-01-20T22:23:07.000Z (4 months ago)
- Last Synced: 2025-04-14T11:12:55.703Z (about 1 month ago)
- Language: JavaScript
- Size: 8.79 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# MTGO deck formatter
Tool to format (or check the format) of a Magic: the Gathering Online (MTGO) TXT deck list.Since the sort order of MTGO txt list is not alphabetical, versioning these files is a mess.
This tools sorts the cards in the deck lists, while keeping main board and side board intact.## Requirements
- NodeJS (>=18)## Installation
`npm install -g mtgo-deck-formatter`## Usage
- `mtgo-deck-formatter -w decklist.txt another-decklist.txt ...` (or `--write`)
Sorts the deck list alphabetically (ignores card amounts) and overwrites the existing file.
- `mtgo-deck-formatter -c decklist.txt` (or `--check`)
Checks format of all supplied deck lists, exits with error if at least one list has invalid format.- `mtgo-deck-formatter -p decklist.txt` (or `--print`)
Sorts the deck list alphabetically (ignores card amounts) and prints the formatted deck list.
Does not overwrite the existing file.- `mtgo-deck-formatter -h` (or `--help`)
Shows instructions.