Skip to content

Latest commit

 

History

History
42 lines (32 loc) · 1.15 KB

README.md

File metadata and controls

42 lines (32 loc) · 1.15 KB
      .
 _.  .|_  _ ._.._  _.._ _  _  ___  _  _ ._
(_.\_|[_)(/,[  [ )(_][ | )(/,     (_](/,[ )
   ._|                            ._|

GitHub Release GitHub License

What it is

The Name object lets you generate a cyberpunkish name according to gender. The code comes from ScifiIdeas cyber punk name generators. It's been rewritten in Typescript.

Usage

import {EGender, Name} from "./name";

const maleNameObject = new Name(EGender.male)
const femaleNameObject = new Name(EGender.female)

// this should output a string like 'firstname lastname'
console.log(maleNameObject.toString())

// you can access the first and lastname with accessors
console.log(femaleNameObject.firstname, femaleNameObject.lastname)

Here are some sample names, evens are male:

  • Lin Highlyle
  • Rick Quideman
  • Larry Srilly
  • Arakan Moon
  • Case Mountilsworth
  • Chonglin Spokely
  • Far Highworth
  • Johnny Clark
  • Deming Day
  • Andrew Quilly