JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q9987F
  • License ISC

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.

Package Exports

  • lorem-thema
  • lorem-thema/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 (lorem-thema) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

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, and goodComments
  • 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-thema

Usage

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.