Skip to content
Yet Another Name Generator
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
dictionary Initial commit Aug 22, 2015
.gitignore Initial commit Aug 22, 2015
LICENSE changed license to MIT Sep 1, 2015
README.md update README Nov 2, 2015
index.js changed parameter camelize to titleize Aug 25, 2015
package.json update README, version bump Nov 2, 2015
test.js changed parameter camelize to titleize Aug 25, 2015

README.md

YANG Build Status

Yet Another Name Generator

Install

$ npm i yet-another-name-generator

Test

$ npm test

Usage

var 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
You can’t perform that action at this time.