Skip to content

OmerShlush/generate-random-word

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

npm install --save generate-random-word

const { generateRandomWord } from 'generate-random-word';

generateRandomWord() -- // returns a generated random word

generateRandomWord({exact: 5}) -- // returns a generated random word by exact length 5

generateRandomWord({min: 3, max: 6}) -- // returns a generated random word between 3 to 6

WRONG_PARAMETERS Error will be returned if params are wrong.

WRONG_WORD_LENGTH Error will be returned if length smaller than 2 or bigger than 22

words list generated by Mieliestronk's

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published