make-words
TypeScript icon, indicating that this package has built-in type declarations

0.2.8 • Public • Published

make-words

generate random words Node.js Package Codacy Badge npm version

Installation

Use the package manager npm to install make-words.

npm i make-words

Functions

getWordByLength(length)string

get all words thet have a specific length

getRandomWord()string

get a random word from the dataset

getWord(length, letters, excludeChars, [mustHaveLetter])

get a word that has a specific length and that includes the most letters possible from the letters array

getWords(count, minWordLength, maxWordLength, letters, excludeChars, [mustHaveLetter])

get any number of random words that contain specific letters

getWordByLength(length) ⇒ string

get all words thet have a specific length

Kind: global function

Param Type
length number

getRandomWord() ⇒ string

get a random word from the dataset

Kind: global function

getWord(length, letters, excludeChars, [mustHaveLetter])

get a word that has a specific length and that includes the most letters possible from the letters array

Kind: global function

Param Type
length number
letters Array.<string>
excludeChars Array.<string>
[mustHaveLetter] string

getWords(count, minWordLength, maxWordLength, letters, excludeChars, [mustHaveLetter])

get any number of random words that contain specific letters

Kind: global function

Param Type
count number
minWordLength number
maxWordLength number
letters Array.<string>
excludeChars Array.<string>
[mustHaveLetter] string

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i make-words

Weekly Downloads

9

Version

0.2.8

License

MIT

Unpacked Size

295 kB

Total Files

9

Last publish

Collaborators

  • dovid-moshe-crow