Skip to content

metamagic-games/ccg-card-generator

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 

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!