ilorem
v1.2.4
Published
Include lorem-text, picsum images
Downloads
12
Maintainers
Readme
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". -->