Simple and easy dummy data generation for node. Generate random words, sentences, paragraphs, money and numbers for use in your project. All with randomized punctuation.
Quickstart
var lipsum = // Sentence with 8 to 21 wordsvar sentence = lipsum;// Eget fermentum fusce diam ut ut sit libero imperdiet// pharetra EROS consectetur EROS, commodo ipsum nunc dui nullam// elementum mi proin libero, TorTor eget tortor EROS.
Installation
$ npm install simple-lipsum
Features
- Get random words
- Get random sentences with punctuation
- Paragraphs with random sentences
- Numbers
- Money
- Specify the min and max amounts, or specify absolute
Documentation
Text
var lipsum = // 5 to 10 words divided by spacevar words = lipsum;// EROS elementum sit convallis Consectetur nunc at est convallis// tortor adipiscing eget Consectetur eget libero imperdiet mi convallis // Sentence with 8 to 21 wordsvar sentence = lipsum;// Eget fermentum fusce diam ut ut sit libero imperdiet// pharetra EROS consectetur EROS, commodo ipsum nunc dui nullam// elementum mi proin libero, TorTor eget tortor EROS. // Sentence with exact 10 wordsvar sentence = lipsum;// Eget fermentum fusce diam ut ut sit libero imperdiet pharetra. // Paragraph with 2 to 5 sentencesvar paragraph = lipsum;// Proin imperdiet erat nunc elit adipiscing ut ut lacinia // sit blandit pellentesque mattis, mattis diam imperdiet metus TorTor // pharetra convallis adipiscing blandit loremtortor. Blandit dolor // consectetur proin erat mattis tortor, imperdiet amet Consectetur // erat elit, elementum metus elit erat adipiscing dolor erat EROS // estdui EROS mi convallis.
Numbers
lipsum.getNumber({min value}, {max value}, {fixed point});
var lipsum = var nr1 = lipsum;// 3var nr2 = lipsum;// 5.83var nr3 = lipsum;// 1234.5678
Money
lipsum.getMoney({lipsum.currency}, {min value}, {max value});
var lipsum = var money1 = lipsum;// 0.94var money2 = lipsum;// 36.15var money3 = lipsum;// 1.803.590,29var money4 = lipsum;// 1,000,000.05