worge
v1.0.1
Published
Word + Merge = Worge
Downloads
2
Readme
Worge
Word + Merge = Worge
Easy and simple word merging based off of other words
Basic Usage
const worge = require('worge');
console.log(worge({}));
// ['']
console.log(worge({ words: ['Word', 'Merge'], threshhold: 1 }));
// ['Worge']
// Other possibilities ['Merd'], ['Word'], or ['Merge']
Worge Parameters
|Parameter|Type|Default|Use| | --- | --- | --- | --- | |words|Array|[ ]|The pool of words to attempt to merge| |threshold|Number|3|The amount of letters needed to match to merge| |count|Number|1|How many unique words| |maxLength|Number|16|Max length of unique words| |failsThreshold|Number|10|How many times worge will attempt to find a new word before returning the current array|
License
This project is licensed under the MIT License - see the LICENSE file for details