Nerds Pledge Magnanimously
    Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    pile.coffeepublic

    Pile

    A simple way to convert your MTGO DEK files to other popular formats.

    Installation:

    $ npm install pile.coffee -g

    Usage:

    $ pile ~/path/to/mydeck.dek

    Formats supported:

    In:

    DEK (MTGO Default export option)

    <?xml version="1.0" encoding="utf-8"?>
    <Deck xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
      <NetDeckID>0</NetDeckID>
      <PreconstructedDeckID>0</PreconstructedDeckID>
      <Cards CatID="17923" Quantity="2" Sideboard="false" Name="Aphetto Dredging" />
      <Cards CatID="49159" Quantity="4" Sideboard="false" Name="Doom Blade" />
      <Cards CatID="35284" Quantity="4" Sideboard="false" Name="Frenzy Sliver" />
      <Cards CatID="38612" Quantity="2" Sideboard="false" Name="Terror" />
      <Cards CatID="43393" Quantity="4" Sideboard="false" Name="Undying Evil" />
      <Cards CatID="39736" Quantity="4" Sideboard="false" Name="Geth's Verdict" />
      <Cards CatID="20367" Quantity="3" Sideboard="false" Name="Echoing Decay" />
      <Cards CatID="49579" Quantity="4" Sideboard="false" Name="Predatory Sliver" />
      <Cards CatID="9527" Quantity="4" Sideboard="false" Name="Muscle Sliver" />
      <Cards CatID="35286" Quantity="4" Sideboard="false" Name="Virulent Sliver" />
      <Cards CatID="45466" Quantity="7" Sideboard="false" Name="Swamp" />
      <Cards CatID="45456" Quantity="4" Sideboard="false" Name="Swamp" />
      <Cards CatID="45442" Quantity="5" Sideboard="false" Name="Forest" />
      <Cards CatID="49060" Quantity="3" Sideboard="false" Name="Terramorphic Expanse" />
      <Cards CatID="9475" Quantity="4" Sideboard="false" Name="Lotus Petal" />
      <Cards CatID="12585" Quantity="2" Sideboard="false" Name="Unearth" />
      <Cards CatID="45460" Quantity="2" Sideboard="true" Name="Naturalize" />
      <Cards CatID="37889" Quantity="2" Sideboard="true" Name="Pyroblast" />
      <Cards CatID="28041" Quantity="2" Sideboard="true" Name="Hydroblast" />
      <Cards CatID="27955" Quantity="2" Sideboard="true" Name="Dust to Dust" />
      <Cards CatID="45464" Quantity="2" Sideboard="true" Name="Plains" />
      <Cards CatID="20367" Quantity="1" Sideboard="true" Name="Echoing Decay" />
      <Cards CatID="45480" Quantity="1" Sideboard="true" Name="Island" />
      <Cards CatID="45450" Quantity="1" Sideboard="true" Name="Mountain" />
      <Cards CatID="38612" Quantity="2" Sideboard="true" Name="Terror" />
    </Deck>

    Out:

    DEC (Decked Builder)

    2 Aphetto Dredging
    4 Doom Blade
    4 Frenzy Sliver
    2 Terror
    4 Undying Evil
    4 Geth's Verdict
    3 Echoing Decay
    4 Predatory Sliver
    4 Muscle Sliver
    4 Virulent Sliver
    7 Swamp
    4 Swamp
    5 Forest
    3 Terramorphic Expanse
    4 Lotus Petal
    2 Unearth
    SB: 2 Naturalize
    SB: 2 Pyroblast
    SB: 2 Hydroblast
    SB: 2 Dust to Dust
    SB: 2 Plains
    SB: 1 Echoing Decay
    SB: 1 Island
    SB: 1 Mountain
    SB: 2 Terror

    TXT (Deckstats.net)

    2 Aphetto Dredging
    4 Doom Blade
    4 Frenzy Sliver
    2 Terror
    4 Undying Evil
    4 Geth's Verdict
    3 Echoing Decay
    4 Predatory Sliver
    4 Muscle Sliver
    4 Virulent Sliver
    7 Swamp
    4 Swamp
    5 Forest
    3 Terramorphic Expanse
    4 Lotus Petal
    2 Unearth
     
    //Sideboard
    2 Naturalize
    2 Pyroblast
    2 Hydroblast
    2 Dust to Dust
    2 Plains
    1 Echoing Decay
    1 Island
    1 Mountain
    2 Terror

    TXT (BBCode formatted for forums.mtgsalvation.com)

    [DECK= BG Slivers]
    2 Aphetto Dredging
    4 Doom Blade
    4 Frenzy Sliver
    2 Terror
    4 Undying Evil
    4 Geth's Verdict
    3 Echoing Decay
    4 Predatory Sliver
    4 Muscle Sliver
    4 Virulent Sliver
    7 Swamp
    4 Swamp
    5 Forest
    3 Terramorphic Expanse
    4 Lotus Petal
    2 Unearth
     
    Sideboard
    2 Naturalize
    2 Pyroblast
    2 Hydroblast
    2 Dust to Dust
    2 Plains
    1 Echoing Decay
    1 Island
    1 Mountain
    2 Terror
    [/DECK]

    CSV

    Count,Card,Sideboard,
    "2","Aphetto Dredging","false",
    "4","Doom Blade","false",
    "4","Frenzy Sliver","false",
    "2","Terror","false",
    "4","Undying Evil","false",
    "4","Geth's Verdict","false",
    "3","Echoing Decay","false",
    "4","Predatory Sliver","false",
    "4","Muscle Sliver","false",
    "4","Virulent Sliver","false",
    "7","Swamp","false",
    "4","Swamp","false",
    "5","Forest","false",
    "3","Terramorphic Expanse","false",
    "4","Lotus Petal","false",
    "2","Unearth","false",
    "2","Naturalize","true",
    "2","Pyroblast","true",
    "2","Hydroblast","true",
    "2","Dust to Dust","true",
    "2","Plains","true",
    "1","Echoing Decay","true",
    "1","Island","true",
    "1","Mountain","true",
    "2","Terror","true",

    TODO

    • Add other formats
    • Add the ability to specify a single format to export
    • Add the ability to specify the path you'd like to export to
    • Decouple and turn into a quick web service

    install

    npm i pile.coffee

    Downloadslast 7 days

    2

    version

    0.5.2

    license

    MIT

    repository

    github.com

    last publish

    collaborators

    • avatar