Skip to content

jsilvermist/lorem-ipsum-js

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Lorem Ipsum generator

JavaScript ES module random text generator

Usage

npm i @jsilvermist/lorem-ipsum-js
import { LoremIpsum } from '@jsilvermist/lorem-ipsum-js';

Random sentence

const ipsum = new LoremIpsum();
console.log(ipsum.sentence());

Random sentence specific length

const ipsum = new LoremIpsum();
console.log(ipsum.sentence(12));

Random sentence dynamic length

const ipsum = new LoremIpsum();
console.log(ipsum.sentence(8, 12));

Random paragraph

const ipsum = new LoremIpsum();
console.log(ipsum.paragraph());

Random paragraph specific length

const ipsum = new LoremIpsum();
console.log(ipsum.paragraph(50));

Random paragraph dynamic length

const ipsum = new LoremIpsum();
console.log(ipsum.paragraph(20, 60));

About

JavaScript ES module random text generator

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%