An open API service indexing awesome lists of open source software.

https://github.com/shreyasminocha/dummy.js

A script to automatically insert dummy text in the specified elements.
https://github.com/shreyasminocha/dummy.js

dummy fill lorem-ipsum sentence

Last synced: 3 months ago
JSON representation

A script to automatically insert dummy text in the specified elements.

Awesome Lists containing this project

README

        

# Dummy.js

> A simple script for injecting dummy text into html pages.

![Screenshot of Dummy.js in action](https://i.imgur.com/VI0UyJY.jpg)

## Getting Started

```html




```

There! Dummy.js is at your service.

## CDN

`https://cdn.jsdelivr.net/gh/shreyasminocha/Dummy.js@[insert version number]/dist/dummy.min.js`

Make sure to replace `[insert version number]` with the [tag of the latest version](https://github.com/shreyasminocha/Dummy.js/releases/latest).

## Usage

### Words

The following snippet would fill `

` with 5 words of dummy text.

```html


```

### Sentences

The following snippet would fill `

` with 8 sentences of dummy text.

```html


```

### Paragraphs

The following snippet would fill `

` with 3 paragraphs of dummy text.

```html


```

## Ready to ditch pseudo-Latin?

You can temporarily disable Dummy.js, by simply commenting out the script tag that imports it. Once you have your copy ready, you could use the regular expression`data-dummy=([\"\'])[\d\w ]*\1` to match all `data-dummy` attributes(and remove them).

## License

[MIT License](https://shreyas.mit-license.org/2016)