UNPKG

@opendnd/genetica

Version:

This is a tool for using a simplified genetics system to generate inheritable traits for DnD characters.

18 lines (13 loc) 407 B
import { DNA } from "@opendnd/core"; import Renderer from "./renderer"; import Saver from "./saver"; const program = require("commander"); // tslint:disable-line // program basics program .option("-i, --input <file>", "input *.per file") .parse(process.argv); // load a file or go through the wizard if (program.input) { const result: DNA = Saver.load(program.input); Renderer.output(result); }