lorem-filler

2.0.2 • Public • Published

Lorem Filler

What is?


A simple javascript library that adds lorem text in a clean way, using pure JS or CSS tags

Installation


npm i lorem-filler

How it Works


Add a css tag including lorem and the library will fill the content for you with 6 words of lorem text. If you want a custom number of words, add _X just after the lorem class, where X is a number between 1 and 100:

<h4 class="lorem otherClass"></h4>
<p class="lorem _10"></p>
<script type="module" type="text/javascript">
  import lorem from "./lorem.js";
  lorem().content();
</script>

OUTPUT

<!-- h4 Default Ouput 6 -->
<h4>Lorem ipsum dolor sit amet, consectetur.</h4>
<!-- p Custom Ouput  -->
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do.</p>

ATTENTION


<h1 class="lorem _56">CORRECT</h1>
<h1 class="_20 lorem">INCORRECT</h1>
<h1 class="lorem otherClass _20">INCORRECT</h1>

BUGS

  • If only "lorem" class is added. Doesn't work

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 2.0.2
    1
    • latest

Version History

Package Sidebar

Install

npm i lorem-filler

Weekly Downloads

1

Version

2.0.2

License

ISC

Unpacked Size

4.34 kB

Total Files

4

Last publish

Collaborators

  • emel_cd