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

vegan-ipsum

v2.0.0

Published

Generates passages of vegan-themed placeholder text suitable for use in web pages, graphics, and more. Works in the browser, NodeJS, and React Native.

Readme

🌱 Vegan Ipsum – Ethical Placeholder Text Generator

NPM Version Node Current NPM License

vegan-ipsum is a JavaScript module that generates vegan-themed placeholder text. It works in Node.js, browsers, and React Native.

Use it for vegan blogs, animal rights projects, or any site where you want meaningful filler text instead of "lorem ipsum."

Based on the lorem-ipsum project by Nickolas Kenyeres.

Major updates (v2.0.0)

  • Node.js engine requirement bumped to >= 20.x (breaking change for older runtimes).
  • Build system migrated to Vite; distribution now ships both ESM (dist/index.mjs) and CJS (dist/index.cjs).
  • CLI is built as CJS with an injected shebang (dist/bin/vegan-ipsum.bin.cjs).
  • Type declarations are emitted to types/ via vite-plugin-dts.

If v2.0.0 doesn't work for you, please use version 1.0.4.


Installation

npm install vegan-ipsum

Using the Class

import { VeganIpsum } from "vegan-ipsum";
// const VeganIpsum = require("vegan-ipsum").VeganIpsum;

const vegan = new VeganIpsum({
	sentencesPerParagraph: { min: 4, max: 8 },
	wordsPerSentence: { min: 4, max: 16 },
});

// Generate words, sentences, or paragraphs and print them
const words = vegan.generateWords(6);
console.log(words);

const sentences = vegan.generateSentences(5);
console.log(sentences);

const paragraphs = vegan.generateParagraphs(2);
console.log(paragraphs);

Using the Function

vegan-ipsum also provides a simple functional interface for quick use-cases.

ESM:

import { veganIpsum } from "vegan-ipsum";

// generate one sentence (default)
console.log(veganIpsum());

// generate three sentences
console.log(veganIpsum({ count: 3, units: "sentences" }));

// generate two paragraphs, HTML formatted
console.log(veganIpsum({ count: 2, units: "paragraphs", format: "html" }));

CommonJS:

const { veganIpsum } = require("vegan-ipsum");
console.log(veganIpsum({ count: 2 }));

Customizable options (shorthand): count, units (words|sentences|paragraphs), format (plain|html), sentenceLowerBound, sentenceUpperBound, paragraphLowerBound, paragraphUpperBound, random, and suffix.


Using the CLI

vegan-ipsum comes with a CLI tool to generate vegan text right from your terminal.

npm install -g vegan-ipsum

Examples:

vegan-ipsum 2 words
vegan-ipsum 3 sentences
vegan-ipsum 1 paragraphs
vegan-ipsum 2 paragraphs --copy
vegan-ipsum 2 paragraphs --format html

Requirements

  • Node.js: >= 20.x
  • npm: >= 9.x

Ensure you are using a supported Node.js LTS. Recommended install via nvm:

nvm install --lts
nvm use --lts

Project

Ecosystem

Explore the wider vegan-ipsum ecosystem and integrations:

  • Project site & landing: https://veganipsum.vercel.app — central hub with links and docs.
  • About: https://veganipsum.vercel.app/about — background, goals, and maintainers.
  • JSON API: https://veganipsum.vercel.app/json-api — programmatic endpoint for generating vegan ipsum.
  • VS Code extension: https://veganipsum.vercel.app/vscode-extension — editor integration for inserting vegan ipsum.

License

This project is licensed under the MIT License.
Copyright © 2025 Vijay Hardaha