Socket
Book a DemoInstallSign in
Socket

englipsum

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

englipsum

Usable placeholder text

latest
Source
npmnpm
Version
0.0.0
Version published
Maintainers
1
Created
Source

Englipsum

See http://hardmath123.github.io/englipsum

The accepted Lorem Ipsum text is inherently messy. It has different character ratios and prevalent digraphs. The words are foreign to most of us, so they attract attention. There's barely any interesting formatting, because Cicero didn't have hyperlinks.

Englipsum solves those problems.

It generates grammatically-valid English that makes sense in context. It looks right, thus allowing itself to be ignored. Englipsum pays attention to the little details that make text natural-looking. The default dictionary includes words found on most tech-ey websites.

Usage

Simply include englipsum.js in your HTML file:

<script src="https://github.com/Hardmath123/englipsum/raw/gh-pages/englipsum.js></script>

Elements of class englipsum will be populated with placeholder text automatically.

<div class="englipsum"></div>

You can customize settings by including JSON in the element:

<div class="englipsum">
{
    "paragraphs": 3,
    "links": true
}
</div>

Reference

PropertyValue
paragraphsThe number of paragraphs to generate
sentencesThe number of sentences per paragraph
linksGenerate random links? (they are uniquely stamped so that testing a:visited is easy)
emsItalicize random words?
dictProvide your own dictionary. Object with fields (all optional) nouns, verbs, adjs, advs
dictReference a provided dictionary. Possible values: "farm"

Examples

Create a to-do list:

<ol>
    <li class="englipsum"> {"sentences": 1, "paragraphs": 1}</li>
    <li class="englipsum"> {"sentences": 1, "paragraphs": 1}</li>
    <li class="englipsum"> {"sentences": 1, "paragraphs": 1}</li>
    <li class="englipsum"> {"sentences": 1, "paragraphs": 1}</li>
</ol>

Placeholder text about animals:

<div class="englipsum">
{
    "dict": {
        "nouns": ["cow", "pig", "sheep", "fish", "farmer", "tractor"],
        "verbs": ["makes", "grows", "works", "produces", "helps"]
    }
}
</div>

Keywords

lorem

FAQs

Package last updated on 06 Oct 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.