Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

this-is-your-life-cli

mikechabot17MIT0.0.7

Generate character backstories based on the Xanathar's Guide to Everything 'This Is Your Life' tables.

xanathar's, guide, to, everything, dungeons, dragons, D&D, 5e, XGE, XGtE

readme

npm version Dependency Status

this-is-your-life-cli

CLI Implementation of https://github.com/trwolfe13/this-is-your-life

Install globally

  1. npm install -g this-is-your-life-cli

  2. Execute from CLI:

    $ this-is-your-life-cli
    { race: { name: 'Hobgoblin', subraces: [], other: { Origin: [Object] } },
    subrace: undefined,
    class:
    { name: 'Warlock',
      ...
  3. 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'))