npm.io
1.0.0 • Published 10 years ago

make-word

Licence
ISC
Version
1.0.0
Deps
1
Vulns
0
Weekly
0

Make Word

Generates pronounceable text in English.

There has been not attempt made to prevent or remove existing words, including obscene from being generated.


let makeWord = require('make-word');

makeWord();
// otheiful

for(let i = 0; i < 10; i++) {

  makeWord(2, 10);

}
// wheiskine
// athight
// qujhogh
// gheyeegru
// uquly
// criespell
// aw
// st

Installation

$ npm install pronounceable-text-generator

API

var makeWord = require('make-word');
makeWord(min, max)
  • parameter {number} = 8 min: The minimum length of the word.
  • parameter {number} = 8 max: The maximum length of the word.
  • returns {string}: A randomly generated word that.