Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

YANG

Yet Another Name Generator

YANG

Install

$ npm i yet-another-name-generator

Test

$ npm test

Usage

const YANG = require('yet-another-name-generator')

YANG.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

YANG.generate(options);

options:

  • the {Boolean}: if true add the word "the" to the beginning of the string.
  • titleize {Boolean}: if true uppercase the first letter of each word in the string.
  • separator {Boolean|String}: if false trim spaces between the words of the string making it one long string. else replace the whitespace between words with your custom separator.

Examples

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

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

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

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

About

Yet Another Name Generator

Resources

License

Releases

No releases published

Packages

No packages published