Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
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
  • npm
  • Socket score

Version published
Maintainers
1
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

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc