Package Exports
- vegan-ipsum
- vegan-ipsum/dist/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (vegan-ipsum) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
vegan-ipsum
🌱 Vegan Ipsum – Ethical Placeholder Text Generator 🌱
vegan-ipsum is a JavaScript module for generating vegan-themed placeholder text. Inspired by the popular lorem-ipsum project, this tool is ideal for designers, developers, and creators who want ethically themed dummy text with a compassionate twist.
Whether you’re building a vegan blog, animal rights project, or simply want to replace “lorem ipsum” with meaningful filler, vegan-ipsum is for you.
Compatible with Node.js, browsers, and React Native.
🙏 Thanks to
lorem-ipsumby Nickolas Kenyeres for the original work we’ve lovingly adapted from.
Installation
npm i vegan-ipsumUsing 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 },
});
vegan.generateWords(1);
vegan.generateSentences(5);
vegan.generateParagraphs(7);Using the Function
vegan-ipsum also supports a functional interface for simple, quick usage:
import { VeganIpsum } from "vegan-ipsum";
VeganIpsum(); // generates one sentenceCustomizable options:
VeganIpsum({
count: 1,
format: "plain", // "plain" or "html"
paragraphLowerBound: 3,
paragraphUpperBound: 7,
sentenceLowerBound: 5,
sentenceUpperBound: 15,
random: Math.random,
suffix: "\n",
units: "sentences", // "words", "sentences", or "paragraphs"
});Using the CLI
vegan-ipsum comes with a CLI tool to generate vegan text right from your terminal.
npm i -g vegan-ipsumExamples:
vegan-ipsum 2 words
vegan-ipsum 3 sentences
vegan-ipsum 1 paragraph
vegan-ipsum 2 paragraphs --copy
vegan-ipsum 2 paragraphs --format htmlLicense
This project is licensed under the ISC License. © 2025 Vijay Hardaha
Based on lorem-ipsum by Nickolas Kenyeres – thank you for the foundation and inspiration.