vue-lorem-ipsum

Lorem ipsum text generatog based on lorem.js for vue.js

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
vue-lorem-ipsum
1600.0.16 years ago6 years agoMinified + gzip package size for vue-lorem-ipsum in KB

Readme

Lorem ipsum text generator for vue.js

Installation

Run ``npm install vue-lorem-ipsum --save``

Usage

Add in the component ``import LoremIpsum from 'vue-lorem-ipsum';``
Use in the template ``<lorem add="2p"></lorem>``

Query language

It uses lorem.js logic for generating the text blocks. Lorem.js has a simple query language: "how many?, what?"
- 2p = 2 paragraphs => ``<lorem add="2p" />` - 5s = 5 sentences => `<lorem add="5s" />` - 6w = 6 words => `<lorem add="6w" />` - 1-6w = between 1 and 6 words => `<lorem add="1-6w" />``