randorem
Randomly generate lorem ipsum like words, sentences or paragraphs.
Install
$ npm i --save @amundsan/randorem
Import
import Randorem from '@amundsan/randorem'
// ...or, without node_modules pollution
import 'https://cdn.jsdelivr.net/npm/@amundsan/randorem'
Usage
Randorem.word({ minLetters: 2, maxLetters: 4 })
// or
Randorem.word() // default between 2 and 10 letters
// => 'siny'
Randorem.sentence({ minWords: 2, maxWords: 4 })
// or
Randorem.sentence() // default between 2 and 10 words
// => 'Siny myd kujacobede'
Randorem.paragraph({ minSentences: 2, maxSentences: 3 })
// or
Randorem.paragraph() // default between 8 and 15 sentences
// => 'Siny myd kujacobede faco fimymup. [...] Vylevo pete sinihotypu lebid hicatecupylo qokalyjitadixy.'