Socket
Book a DemoInstallSign in
Socket

yet-another-name-generator

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

yet-another-name-generator

Yet Another Name Generator

1.2.0
latest
Source
npmnpm
Version published
Weekly downloads
329
477.19%
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

project

FAQs

Package last updated on 02 Feb 2024

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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.