npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

pepita

v1.0.2

Published

Automatically generate and add template text and images to a HTML file

Readme

Pepita


Generate placeholder text and images with simple CSS classes.

Installation

Download the package with npm :

$ npm install pepita

Usage

Go to your HTML file and load auto-pepita.js :

<head>
   <script src="./node_modules/pepita/dist/auto-pepita.js"></script>
</head>

Specify what you want by adding a class to your element :

   <p class="pepita-text-words-16"></p>
</body>

The text will appear once you open the file in your browser :

<body>
   <p class="pepita-text-words-16">
      esse fugiat eu eiusmod eiusmod proident elit nisi nulla veniam laboris labore ipsum ullamco elit irure
   </p>
</body>

Syntax

Everything in bold is a variable that you can change (e.g write 32 instead of length)

Text

These use the default length of 16 :

pepita-text

pepita-text-words

pepita-text-sentences

pepita-text-paragraphs

The following ones allow you to specify a length :

pepita-text-words-length

pepita-text-sentences-length

pepita-text-paragraphs-length

Image

Default height and width for an image are 400px. Default color is black.

pepita-image

pepita-image-size

pepita-image-width-height

pepita-image-width-height-color

Examples

Text :

No length given:

Before :

<p class="pepita-text"></p>

No length is specified here, so default of 16 is used.

After :

<p class="pepita-text">
   cupidatat enim ex nostrud amet fugiat do ad in elit adipisicing consequat anim nisi veniam nisi
</p>

Length specified:

Before :

<p class="pepita-text-8"></p>

Length of 8 specified. Generates 8 words.

After :

<p class="pepita-text-8">
  nostrud ut proident officia laboris minim amet ipsum
</p>

Type specified :

Before :

<p class="pepita-text-paragraphs-1"></p>

Paragraph is one of three options (words, sentences and paragraphs). If nothing is given, default of words is assumed.

After :

<p class="pepita-text-paragraphs-1">
   Cillum quis officia nostrud tempor eiusmod nulla labore qui occaecat. Officia mollit quis excepteur velit magna qui officia cupidatat duis. Nisi anim pariatur exercitation quis aute. Nisi nostrud ea magna nostrud ea labore irure sint sint nostrud voluptate qui. Aliqua quis id anim sunt commodo. Officia incididunt do nulla ullamco laborum ex voluptate eu excepteur aliqua. Minim Lorem qui nisi officia esse adipisicing laborum cupidatat occaecat dolor mollit sit veniam aliqua.
</p>

Images :

Default image:

Before :

<img class="pepita-image"></img>

Generates a 400px by 400px, black, image.

After : In the code :

<img class="pepita-image" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAAGQCAYAAACAvzbMAAAOGUlEQVR4Xu3VsQ0AIAwEsWT/oUFiA642NWmsl25n5oxHgAABAgQ+BVZAPsV8J0CAAIEnIC"></img>

which looks like this :


Height, width and color :

Before :

<img class="pepita-image-250-150-#f4be41"></img>

Everything specified. Width, height and color.

After :

Customization

Besides specifying variables directly in the class name, /dist/pepita.jsexports the following values :

Keyword (e.g shorten pepita to just p)

Default length

Default type (words, sentences, paragraphs)

Default width

Default height

Default Color (for images)

If you happen to make changes to src/pepita.js directly, remember to later compile it with browserify.

Known bugs

  • Adding to a child is not possible if the parent element also had text/image added.
  • Some combination of incorrect labels does not give out a warning.
  • Images can only be added to <img> tags.

Thanks

Special thanks to the contributors of the lorem-ipsum package.

Contributing

Feedback (especially regarding useability and workflow) is hightly encouraged.