1.0.4 • Published 6 years ago

@ciro.spaciari/word.generator v1.0.4

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

word.generator

All words are provided by https://raw.githubusercontent.com/dwyl/english-words.

Support me for future versions:

BMC

PAGSEGURO

To install:

npm install @ciro.spaciari/word.generator

Example of use:

const WordGenerator = require("@ciro.spaciari/word.generator");
//quantity of words and min length of each word as parameters
console.log(WordGenerator.generate(12, 3));

Will always return a object with the words quantity and a sha256 hash for unique check if needed

{ words: [ 'antimethodical',
           'assemblagist',
           'coincorporate',
           'disomatous',
           'limean',
           'moralness',
           'paleopicrite',
           'steamie',
           'streamlining',
           'telethermogram',
           'tophetic',
           'wadna' ],
  hash: 'd62c91ae19411cee609b8ea0f9783a370769b968362bbd84e4f661c8252c316e' }