vue-khaled-ipsum

0.1.2 • Public • Published

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

Parameter Default Explanation
count 1 Number of units to generate.
units 'sentences' Generate 'words', 'sentences', or 'paragraphs'.
sentenceLowerBound 5 Minimum words per sentence.
sentenceUpperBound 15 Maximum words per sentence.
paragraphLowerBound 3 Minimum sentences per paragraph.
paragraphUpperBound 7 Maximum sentences per paragraph.
format 'plain' 'plain' or 'html'.
words khaled-ipsum's dictionary.js Dictionary of words to draw from.
random Math.random A PRNG function.
suffix EOL The character to insert between paragraphs. Defaults to default EOL for your OS.

Readme

Keywords

Package Sidebar

Install

npm i vue-khaled-ipsum

Weekly Downloads

4

Version

0.1.2

License

MIT

Unpacked Size

4.64 kB

Total Files

5

Last publish

Collaborators

  • kstafford3