@bturkis/loremipsum-cli
v1.0.27
Published
CLI tool for generating Lorem Ipsum text in 30+ languages
Maintainers
Readme
@bturkis/loremipsum-cli
Command-line Lorem Ipsum generator with 30+ language support
Features
- 🌍 30+ Languages - Latin, Turkish, English, German, French, and more
- 📋 Clipboard Support - Copy output directly to clipboard
- 🎨 Multiple Formats - Text, HTML, Markdown, JSON
- 🔄 Reproducible Output - Seed support for consistent results
- ⚡ Fast & Lightweight - Zero external API calls
Installation
npm install -g @bturkis/loremipsum-cliUsage
# Generate 3 paragraphs (default)
lorem -p 3
# Generate 5 sentences in Turkish
lorem -s 5 -l tr
# Generate 10 words in German
lorem -w 10 -l de
# Generate and copy to clipboard
lorem -p 2 --copy
# Output as HTML
lorem -p 3 -f html
# Silent mode (no header)
lorem -p 1 --silentCommands
lorem or lipsum
Both commands work identically.
Options
| Option | Alias | Description | Default |
|--------|-------|-------------|---------|
| --paragraphs | -p | Number of paragraphs | 1 |
| --sentences | -s | Number of sentences | - |
| --words | -w | Number of words | - |
| --locale | -l | Language code | la |
| --format | -f | Output format (text/html/json/md) | text |
| --no-start | - | Don't start with "Lorem ipsum..." | false |
| --copy | - | Copy to clipboard | false |
| --seed | - | Seed for reproducible output | - |
| --silent | - | Only output text (no header) | false |
| --list-locales | - | Show all available languages | - |
| --version | -V | Show version | - |
| --help | -h | Show help | - |
Examples
Generate Turkish Lorem Ipsum
lorem -p 2 -l trOutput:
╔═══════════════════════════════════════════╗
║ LOREM IPSUM GENERATOR ║
║ Developer-friendly text generator ║
╚═══════════════════════════════════════════╝
📝 2 paragraph(s) • Türkçe • text
Matematik dijital vermek anlamak, görmek sistem tasarım...
Sevgi anlamak yazılım tutmak psikoloji ses...Generate HTML output
lorem -p 2 -f html --silentOutput:
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit...</p>
<p>Sed do eiusmod tempor incididunt ut labore...</p>Generate JSON for scripts
lorem -s 3 -f json --silentOutput:
{
"sentences": [
"Lorem ipsum dolor sit amet.",
"Consectetur adipiscing elit.",
"Sed do eiusmod tempor."
],
"count": 3
}Copy to clipboard
lorem -p 1 -l en --copyReproducible output with seed
lorem -p 1 --seed 42
# Always generates the same textAvailable Languages
Run lorem --list-locales to see all 30+ supported languages:
📌 Available Locales:
la Latina ru Русский id Indonesia
tr Türkçe el Ελληνικά cs Čeština
en English ar العربية sv Svenska
de Deutsch he עברית da Dansk
fr Français ja 日本語 fi Suomi
es Español zh 中文 no Norsk
it Italiano ko 한국어 uk Українська
pt Português hi हिन्दी ro Română
nl Nederlands th ไทย hu Magyar
pl Polski vi Tiếng Việt bg Българскиnpm Package
Need to use in your code? Check out @bturkis/loremipsum
import { paragraphs } from '@bturkis/loremipsum';
const text = paragraphs(3, { locale: 'tr' });Web App
Try it online at loremipsum.neisterse.com
License
MIT © Burak Turkis
