adjective-noun-generator
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

adjective-noun-generator

Generates a random english language name consisting of an adjective and a noun.

Installation

Using npm:

$ npm i adjective-noun-generator

Usage

adjectiveNounGenerator([options: Options = {}]);

Default behavior:

import adjectiveNounGenerator from 'adjective-noun-generator';

const randomName = adjectiveNounGenerator();

console.log(randomName);

Passing custom options object:

import adjectiveNounGenerator from 'adjective-noun-generator';

const randomName = adjectiveNounGenerator({
  separator: '_'
});

console.log(randomName);

Options

  • separator: string = ' ' - Defines the separator string between the adjective and the noun.

  • caseStyle: 'capital'|'lower'|'upper'|'sentence' = 'capital' - Specifies the use of uppercase and lowercase letters in the generated string.

    • 'capital' - Demonstrative Example
    • 'lower' - demonstrative example
    • 'upper' - DEMONSTRATIVE EXAMPLE
    • 'sentence' - Demonstrative example

Package Sidebar

Install

npm i adjective-noun-generator

Weekly Downloads

10

Version

1.0.0

License

ISC

Unpacked Size

164 kB

Total Files

10

Last publish

Collaborators

  • nykol4z