1.2.0 • Published 3 months ago

yet-another-name-generator v1.2.0

Weekly downloads
66
License
MIT
Repository
github
Last release
3 months ago

YANG

Yet Another Name Generator

YANG

Install

$ pnpm add yet-another-name-generator
# or
$ npm add yet-another-name-generator
# or
$ yarn add yet-another-name-generator

Test

$ pnpm run test

Usage

import { generate } from 'yet-another-name-generator'

generate()

Some examples:

  • nostalgic clod-hopper
  • spiritual bagman
  • lacking codman
  • pumped boatwright
  • melted minnow
  • mere kite
  • silky opah
  • blue butcher
  • drunk canadian mountie
  • mountainous herpetologist

API

generate(options);

Options

OptionTypeDescription
thebooleanIf true, adds the word "the" to the beginning of the string.
titleizebooleanIf true, capitalizes the first letter of each word in the string.
separatorboolean | string- If false, trims spaces between the words, making it one long string.
- If a string, replaces the whitespace between words with your custom separator.

Examples

generate({the: true})
// -> the bloody jagger

generate({the: true, titleize: true})
// -> The Magical Minnow

generate({titleize: true, separator: false})
// -> SoggyPoacher

generate({the: true, titleize: true, separator: '-'})
// -> The-Spiritual-Princess
1.2.0

3 months ago

1.1.0

3 months ago

1.0.4

8 years ago

1.0.3

9 years ago

1.0.2

9 years ago

1.0.0

9 years ago