1.2.4 • Published 4 years ago

ilorem v1.2.4

Weekly downloads
3
License
MIT
Repository
github
Last release
4 years ago

Select language README.md

ILorem

A package for automatically generating placeholder text and images, allows you to keep the HTML structure clean during development.

The picsum.photos service is used to insert images.

Install

yarn add ilorem

Usage

Import using webpack

import "ilorem"

Or attach the script manually

<script type="text/javascript" src="/<your_vendor_path>/dist/ilorem.js"></script>

Add texts

<p ilorem></p>                <!-- Text from sentences consisting of 2-100 random words. -->
<p ilorem=123></p>            <!-- Text from sentences consisting of 123 random words. -->
<p ilorem="123"></p>

Add images

<img ilorem>                           <!-- 300x300 random image. -->
<img ilorem=640x480></p>               <!-- 640x480 random image. -->
<img ilorem=seed=user1></p>            <!-- 300x300 static image corresponding to seed "user1". -->
<img ilorem="800x200?seed=user1"></p>  <!-- 800x200 static image corresponding to seed "user1". -->
1.2.4

4 years ago

1.2.0

4 years ago

1.1.2

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.5

5 years ago

1.0.4

6 years ago

1.0.2

6 years ago

1.0.3

6 years ago

1.0.0

6 years ago