Socket
Book a DemoInstallSign in
Socket

adjective-noun-generator

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

adjective-noun-generator

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

latest
Source
npmnpm
Version
1.0.0
Version published
Weekly downloads
1
-66.67%
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

random

FAQs

Package last updated on 03 Nov 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts