Curts Lorem Ipsum is a simple npm package that provides a function to generate random Lorem Ipsum text.
To install Curts Lorem Ipsum, use npm:
npm install curts-lorem-ipsum
Here's how you can use this package:
const generateLoremIpsum = require("curts-lorem-ipsum");
// Generate Lorem Ipsum text with default number of sentences (5)
const loremIpsum = generateLoremIpsum();
console.log(loremIpsum);
// Generate Lorem Ipsum text with a custom number of sentences
const customLoremIpsum = generateLoremIpsum(10);
console.log(customLoremIpsum);
Generates Lorem Ipsum text with a specified number of sentences.
-
sentenceCount
(optional): number - The number of sentences to generate. Defaults to 5. - Returns: string - Random Lorem Ipsum text with the specified number of sentences.
This package is licensed under the MIT License. See the LICENSE file for details.
Curts Lorem Ipsum is developed and maintained by Curtis Thomas.