2.0.0 • Published 5 years ago

fantasy-name-generator v2.0.0

Weekly downloads
18
License
ISC
Repository
github
Last release
5 years ago

Fantasy Name Generator

Commitizen friendly

Generate names on the fly

Want a new name on the fly? Just use npx and the appropriate options for the race you want.

$ npx fantasy-name-generator generate elf --gender female
$ npx fantasy-name-generator g human --allowMulitpleNames false

See the npx command options with -h:

$ npx fantasy-name-generator generate -h
$ npx fantasy-name-generator g -h

Installation

$ npm i fantasy-name-generator

Usage

nameByRace(race: string, options?: { gender?: 'male' | 'female', allowMultipleNames?: boolean })

import { nameByRace } from "fantasy-name-generator";

const elfHero = nameByRace("elf", { gender: "female" });
const enemyDemon = nameByRace("demon");

Races and required options

RaceGenderallowMultipleNames
angel
cavePerson
darkelf
demon
dragon
drow
dwarf
elf
fairy
gnome
goblin
halfdemon
halfling
highelf
highfairy
human
ogre
orc

Contributing

Committing

Please use npm run commit when committing to this project to ensure your commits are consistent.

2.0.0

5 years ago

1.5.0

5 years ago

1.4.5

5 years ago

1.4.4

5 years ago

1.4.3

5 years ago

1.4.2

5 years ago

1.4.1

5 years ago

1.4.0

5 years ago

1.3.3

5 years ago

1.3.2

5 years ago

1.3.1

5 years ago

1.3.0

5 years ago

1.2.3

5 years ago

1.2.2

5 years ago

1.2.1

5 years ago

1.2.0

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago