random-title
v1.0.4
Published
Return a random title populated by semi-pronounceable random (nonsense) words.
Downloads
94
Maintainers
Readme
random-title
Return a random title populated by semi-pronounceable random (nonsense) words.
Install
$ npm install --save random-title
Usage
var randomTitle = require('random-title');
// API
// - randomTitle([options]);
// options
// - words
// - min
// - max
Default is a title with a random number of words from 12
to 18
.
This length is chosen as the default as it works out to the average English sentence is in that range.
randomTitle();
// => 'Witpevze Mappos Isoletu Fo Res Bi Aeow Pofin Rupoho Revzi Utva Ne.'
Optionally specify the number of words in the title:
randomTitle({words: 5});
// => 'Waddik Jeasmov Cakgilta Ficub Up.'
Can optionally provide min
and max
, then with a random words count:
randomTitle({min: 4, max: 9});
// => 'Fusce Dapibus Tellus Ac Cursus Commodo.'
Note: these min and max are inclusive, so they are included in the range.
Related
- random-sentence - Return a random sentence populated by semi-pronounceable random (nonsense) words.
- random-paragraph - Return a random paragraph generated from sentences populated by semi-pronounceable random (nonsense) words.
- random-syllable - Return a semi-speakable syllable, 2 or 3 letters.
- random-lorem - Return a semi-pronounceable random (nonsense) word.
Contributing
Pull requests and stars are highly welcome.
For bugs and feature requests, please create an issue.