lorem-thema
v1.0.5
Published
This package will allow developers to generate random text based on different themes like space, food, technology, or nature. It's both useful for developers who need placeholder text and fun because of the themed content.
Downloads
12
Maintainers
Keywords
Readme
Lorem Thema
Lorem Thema is a customizable lorem ipsum generator that produces placeholder text based on unique themes. Instead of random gibberish, you can create meaningful, themed placeholder text for your projects.
Features
- Generate lorem ipsum-style text based on themes like
space,food,technology,nature,countries,currencies,colors,birds,fruits,flowers,fish,electronics, andgoodComments - Specify the number of words you need. (Max 100 words)
- Easy-to-use API with TypeScript support.
Installation
Install the package via npm:
npm install lorem-themaUsage
Here's an example of how to use the Lorem Thema package:
import { generateLoremThema, getAvailableThemes } from 'lorem-thema';
// Generate themed lorem ipsum text
const theme = 'goodComments'; // Choose a theme: `space`, `food`, `technology`, `nature`,`countries`, `currencies`, `colors`, `birds`, `fruits`, `flowers`, `fish`, `electronics`, and `goodComments`
const wordCount = 10; // Specify the number of words you need
const loremText = generateLoremThema(theme, wordCount);
console.log('Generated Lorem Thema Text:', loremText);
// Get available themes
const themes = getAvailableThemes();
console.log('Available Themes:', themes);For more details, visit the GitHub repository.
