random-lorem
Return a random lorem world.


Install
$ npm install --save random-lorem
Usage
For more use-cases see the tests
var randomLorem = require('random-lorem');
By default, return a string with the length between 2
and 20
:
randomLorem();
Can optionally provide the max length, and the length should be between 2
and max
:
randomLorem(8);
Can optionally provide min and max length:
randomLorem(4, 9);
randomLorem(5, 5);
Note: these min and max are inclusive, so they are included in the range.
This means randomLorem(2, 4)
would return a lorem with a length either 2
, 3
or 4
.
Related
Contributing
Pull requests and stars are highly welcome.
For bugs and feature requests, please create an issue.