Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

lorem-ipsum

Package Overview
Dependencies
Maintainers
1
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lorem-ipsum

Generates passages of lorem ipsum text suitable for use as placeholder copy in web pages, graphics, and more. Works in the browser, NodeJS, and React Native.

  • 1.0.5
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
356K
increased by4.28%
Maintainers
1
Weekly downloads
 
Created

What is lorem-ipsum?

The 'lorem-ipsum' npm package is a versatile tool for generating placeholder text, commonly known as 'Lorem Ipsum'. It can be used to create paragraphs, sentences, or words of dummy text, which is useful for design mockups, testing, and other scenarios where placeholder text is needed.

What are lorem-ipsum's main functionalities?

Generate Lorem Ipsum Paragraphs

This feature allows you to generate a specified number of paragraphs of Lorem Ipsum text. The code sample demonstrates how to generate 2 paragraphs.

const LoremIpsum = require('lorem-ipsum').LoremIpsum;
const lorem = new LoremIpsum();
console.log(lorem.generateParagraphs(2));

Generate Lorem Ipsum Sentences

This feature allows you to generate a specified number of sentences of Lorem Ipsum text. The code sample demonstrates how to generate 3 sentences.

const LoremIpsum = require('lorem-ipsum').LoremIpsum;
const lorem = new LoremIpsum();
console.log(lorem.generateSentences(3));

Generate Lorem Ipsum Words

This feature allows you to generate a specified number of words of Lorem Ipsum text. The code sample demonstrates how to generate 5 words.

const LoremIpsum = require('lorem-ipsum').LoremIpsum;
const lorem = new LoremIpsum();
console.log(lorem.generateWords(5));

Other packages similar to lorem-ipsum

Keywords

FAQs

Package last updated on 16 Jun 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc