- install nodejs: https://nodejs.org/en/download/
- update your
resources/cards.cdb
to latest - move ydk file to
resources/deck/
(test-deck.ydk
as example) - run
npm install
- for Chinese user, you can try to use
cnpm
oryarn
to install the package - to use cnpm:
npm install cnpm --global
then runcnpm install
instead of runningnpm install
- to use yarn:
npm install yarn --global
then runyarn install
instead of runningnpm install
- for Chinese user, you can try to use
- run
node index.js test-deck
- checkout the pdf in
output/test-deck.pdf
- accepted languages:
cn
,jp
,en
. - find a cdb file with your language, rename it to
cards-${lang}.cdb
and move it to/resources
folder. - run
node index.js test-deck ${lang}
- default language is Chinese,
cn
can be passed automatically so you can still runnode index.js test-deck
Thanks for the inspiration of https://github.com/ymssx/yugioh-card
, there is lot's unclear params in this lib but I tested out...