ilorem

1.2.4 • Public • Published

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". -->

/ilorem/

    Package Sidebar

    Install

    npm i ilorem

    Weekly Downloads

    3

    Version

    1.2.4

    License

    MIT

    Unpacked Size

    8.88 kB

    Total Files

    6

    Last publish

    Collaborators

    • zlatov