0.1.2 • Published 5 years ago

vue-khaled-ipsum v0.1.2

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

Khaled Ipsum Vue.js Component

Finally, an easy way to insert the words of DJ Khaled into your Vue.js application.

A wrapper for the npm package khaled-ipsum.

Install

npm install vue-khaled-ipsum

Usage

With defaults:

import KhaledIpsum from 'vue-khaled-ipsum';

Vue.component({
  template: "<div> <khaled-ipsum></khaled-ipsum> </div>",
  components: {
    KhaledIpsum,
  },
});

Or, override some defaults:

<khaled-ipsum :options="{ count: 20, units: 'paragraphs', format: 'html' }"/>

Parameter Reference

ParameterDefaultExplanation
count1Number of units to generate.
units'sentences'Generate 'words', 'sentences', or 'paragraphs'.
sentenceLowerBound5Minimum words per sentence.
sentenceUpperBound15Maximum words per sentence.
paragraphLowerBound3Minimum sentences per paragraph.
paragraphUpperBound7Maximum sentences per paragraph.
format'plain''plain' or 'html'.
wordskhaled-ipsum's dictionary.jsDictionary of words to draw from.
randomMath.randomA PRNG function.
suffixEOLThe character to insert between paragraphs. Defaults to default EOL for your OS.
0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago