spyshiv / dummyjs

DummyJS is an open-source JavaScript plugin that generates customizable and realistic dummy text content for web applications and software projects using standard filler texts. It's useful for development, testing, and more.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

dummyjs: A JavaScript Library for Generating Dummy Text for Web Developers

Are you tired of constantly searching for placeholder text while developing your website? Look no further than dummyjs! This JavaScript library generates dummy text, such as the classic Lorem Ipsum, making it a breeze to fill your pages with sample content.

👽 🙌 :octocat: 🎅

Visit https://spyshiv.github.io/dummyjs

How To use dummyjs

Import dummyjs inside your html file

 <script src="path/to/dummy.js" ></script>

There are three ways to use dummyjs:

1. Generating dummy words

2. Generating dummy Sentences

3. Generating dummy paragraphs 

1. Generating Dummy Words

To generate dummy words, add a new attribute to your HTML code with the format "data-dummy" followed by a numeric value and the letter "w" for "word". For example:

<div data-dummy="4w"> </div>

This will generate four dummy words inside the div tag.

2. Generating Dummy Sentences

To generate dummy sentences, use the "data-dummy" attribute with a numeric value followed by the letter "s" for "sentence". For example:

<div data-dummy="4s"> </div>

This will generate four dummy sentences inside the div tag.

3. Generating Dummy Paragraphs

To generate dummy paragraphs, use the "data-dummy" attribute with a numeric value followed by the letter "p" for "paragraph". For example:

<div data-dummy="4p"> </div>

This will generate four dummy paragraphs inside the div tag.

So what are you waiting for? Give dummyjs a try and enjoy your newfound productivity! Cheers!

About

DummyJS is an open-source JavaScript plugin that generates customizable and realistic dummy text content for web applications and software projects using standard filler texts. It's useful for development, testing, and more.

License:GNU General Public License v2.0


Languages

Language:HTML 69.6%Language:CSS 30.4%