@dsoloha/character-maker
TypeScript icon, indicating that this package has built-in type declarations

0.2.18 • Public • Published

character-maker

This package aims to help you create new characters for your next novel, story, game, TV show, etc.

Issues Stars ISC License

Usage

Install the package:

npm install @dsoloha/character-maker

Import the module and create a new character:

import { Character } from '@dsoloha/character-maker'

// create a new blank character:
const character = new Character()

// create a new character with given parameters:
const character = new Character({
  name: {
    first: 'John',
    last: 'Smith',
  }
})

// create a new fully-randomized character:
const character = new Character().generate()

All parameters available can be found here.

API Reference

All parameters listed here are optional.

The following properties are available on an instance of the Character class:

  • .age
  • .arms
  • .background
  • .build
  • .chest
  • .crotch
  • .eyes
  • .hair
  • .health
  • .height
  • .legs
  • .mouth
  • .muscles
  • .name
  • .neck
  • .nose
  • .pronouns
  • .sex
  • .sexuality
  • .shoulders
  • .skin
  • .speech
  • .stomach
  • .waist
  • .weight

View all sub-properties and more documentation here.

Contributing

Contributions are always welcome!

See contributing.md for ways to get started.

Package Sidebar

Install

npm i @dsoloha/character-maker

Weekly Downloads

0

Version

0.2.18

License

MIT

Unpacked Size

193 kB

Total Files

149

Last publish

Collaborators

  • dsoloha