Skip to content

Amund/randorem

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Random Lorem Ipsum in javascript

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published