Wondering what’s next for npm?Check out our public roadmap! »

    this-is-your-life-cli

    0.0.7 • Public • Published

    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',
         ...
    
    1. 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'))
    

    Install

    npm i this-is-your-life-cli

    DownloadsWeekly Downloads

    8

    Version

    0.0.7

    License

    MIT

    Unpacked Size

    562 kB

    Total Files

    58

    Last publish

    Collaborators

    • avatar
    • avatar