@amundsan/randorem

1.0.4 • Public • Published

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

Package Sidebar

Install

npm i @amundsan/randorem

Weekly Downloads

2

Version

1.0.4

License

MIT

Unpacked Size

5.17 kB

Total Files

4

Last publish

Collaborators

  • amundsan