Skip to content

Latest commit

 

History

History
43 lines (32 loc) · 882 Bytes

README.md

File metadata and controls

43 lines (32 loc) · 882 Bytes

randorem

Randomly generate lorem ipsum like words, sentences or paragraphs.

Check out the demo

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.'