personae
Version:
This tool is used to generate a person either NPC or other Edit
19 lines • 610 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const saver_1 = require("./saver");
const program = require("commander");
// program basics
program
.option("-i, --input <file>", "input *.per|*.json file")
.option("-t, --type <type>", "either json2per or per2json")
.parse(process.argv);
// load a file or go through the wizard
if (program.input) {
if (program.type === "json2per") {
saver_1.default.convertJSONToDnD(program.input);
}
else {
saver_1.default.convertDnDToJSON(program.input);
}
}
//# sourceMappingURL=program-convert.js.map