这是一个用于在ygopro数据库文件和人类可读的文本文件之间互相转换的工具。
npm install cdb-transformer用法:
``
Usage: cdb-transformer [OPTIONS]
Options:
--from-format
Format of source files.
.txt file is always xyyz. .sql file is always sql. .lua file is always script. .cdb file is always cdb. If none of file appendix matches, program will use value of this field.
[possible values: xyyz, cdb, sql, script, unknown]
-f, --from
Source files.
If no value given, source is stdin, format is xyyz.
--to-format
Format of target files.
Program will guess from filename if not provided. Default format is xyyz.
[default: xyyz]
[possible values: xyyz, cdb, sql, script, unknown]
-t, --to
Target file.
You can use {id} to set target lua name when target format is script. If no value given, target is stdout, format is xyyz.
[default: /dev/stdout]
--strings
strings.conf path.
These files is used to format set name inner xyyz format.
--allow-draft
If set, program will allow draft cards goto result
Draft card is an extra OT value only available in xyyz format.
--max-line-length
Max line characters for script mode
[default: 100]
``