Skip to content

metamagic-games/ccg-card-generator

Repository files navigation

ccg-card-generator

npm version GitHub version

Quickly generate pages of trading cards. Useful for rapid prototyping.


Usage

For a working example, take a look at ccg-card-generator-sample-project

  const { ccg-card-generator, } = require("ccg-card-generator");
  
  const target = "./rulebook.md";
  
  const destination = "./rulebook.pdf";

  const options = {
    "debug": true,
    "style": "./node_modules/ccg-card-generator/lib/styles/prototype.css",
    "printOptions": {
      displayHeaderFooter: false,
    },
  };

  ccg-card-generator( target, destination, options);

Contributing

If you'd like to contribute, please fork the repository and use a feature branch. Pull requests are welcome!