Socket
Book a DemoInstallSign in
Socket

@gear4s/random-words

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gear4s/random-words

Random word library

0.0.2-1
latest
npmnpm
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

Random Words!

Generate some random words, with a sane API

How do I use it?

To generate a random-ass, normal word, you can just import and call this function:

import GenerateRandomWord from "@gear4s/random-words";
const RandomWords = GenerateRandomWord();

You can also generate words that start with a letter:

import GenerateRandomWord from "@gear4s/random-words";

const startingLetter = "a";
const RandomWords = GenerateRandomWord(startingLetter);

Or generate words with a maximum length:

import GenerateRandomWord from "@gear4s/random-words";

const RandomWords = GenerateRandomWord(null, 6);

You can also generate more than one word at a time:

import GenerateRandomWord from "@gear4s/random-words";

const RandomWords = GenerateRandomWord(null, null, 15);

Argument list

  • letter
    • type: string
    • default: null
  • maxLength
    • type: number
    • min: 1
    • default: null
  • count
    • type: number
    • min: 1
    • default: null

FAQs

Package last updated on 01 Mar 2021

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.