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.
- Host: GitHub
- URL: https://github.com/shreyasminocha/dummy.js
- Owner: shreyasminocha
- Created: 2016-12-06T06:13:31.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2023-01-04T03:00:26.000Z (over 2 years ago)
- Last Synced: 2025-03-25T03:12:36.459Z (4 months ago)
- Topics: dummy, fill, lorem-ipsum, sentence
- Language: JavaScript
- Homepage:
- Size: 30.3 MB
- Stars: 5
- Watchers: 3
- Forks: 0
- Open Issues: 8
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Dummy.js
> A simple script for injecting dummy text into html pages.

## 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)