Socket
Book a DemoInstallSign in
Socket

geta-random-word

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

geta-random-word

random english word. works in the browser too

2.0.1
latest
Source
npmnpm
Version published
Weekly downloads
9
Maintainers
1
Weekly downloads
 
Created
Source

Get a random word

basic usage

// commonjs because 
const grw = require('geta-random-word')

// async so it won't block (immediately)
grw((randomWord) => console.log(randomWord)) 


// configure by overwriting default options
grw((randomWord) => console.log(randomWord), {
  // if you want more than one word in an array:
  count : 1, 
  // limit the length of your words
  minLength : grw.minLength, // shortest words' length
  maxLength : grw.maxLength, // longest words' length
  // reproducible generation of different pickings 
  defaultSeed: 137, // 137 is arbitrary, look up https://github.com/ckknight/random-js
  engine: null // this is filled up with MersenneTwister19937 from random-js if unprovided
  unique: false

}) 

Keywords

geta

FAQs

Package last updated on 14 Jul 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.