this-is-your-life-cli
CLI Implementation of https://github.com/trwolfe13/this-is-your-life
Install globally
npm install -g this-is-your-life-cli
Execute from CLI:
$ this-is-your-life-cli { race: { name: 'Hobgoblin', subraces: [], other: { Origin: [Object] } }, subrace: undefined, class: { name: 'Warlock', ...
Execute from CLI with options (See https://github.com/trwolfe13/this-is-your-life)
$ this-is-your-life-cli '' '' Monk { race: { name: 'Firbolg', subraces: [], other: { 'Reason for Adventure': [Object] } }, subrace: '', class: { name: 'Monk',
Install as module
CommonJS
const generateCharacter = require('this-is-your-life-cli/lib').default;
ES6
import generateCharacter from 'this-is-your-life-cli/lib/';
console.log(chalk.blue('Generating Random Character'))
console.log(generateCharacter())
console.log(chalk.blue('Generating Monk Class Character'))
console.log(generateCharacter(null, null, 'Monk'))