How to use the lorem-ipsum.loremIpsum function in lorem-ipsum

To help you get started, we’ve selected a few lorem-ipsum examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ONEARMY / community-platform / src / mocks / maps.mock.tsx View on Github external
export const generatePinDetails = (pin: IMapPin): IMapPinDetail => {
  const randomDate = new Date()
  randomDate.setSeconds(randomDate.getSeconds() - Math.random() * 10000)
  const lastActive = randomDate.toISOString()
  return {
    name: loremIpsum({ count: 2, units: 'words' })
      .split(' ')
      .map(word => word.charAt(0).toUpperCase() + word.slice(1))
      .join(' '),
    shortDescription: loremIpsum({ count: 2, units: 'sentences' }),
    lastActive,
    profilePicUrl: 'https://picsum.photos/50/50',
    profileUrl: '/testing',
    heroImageUrl: `https://picsum.photos/seed/${lastActive}/285/175`,
  }
}
github ONEARMY / community-platform / src / mocks / maps.mock.tsx View on Github external
export const generatePinDetails = (pin: IMapPin): IMapPinDetail => {
  const randomDate = new Date()
  randomDate.setSeconds(randomDate.getSeconds() - Math.random() * 10000)
  const lastActive = randomDate.toISOString()
  return {
    name: loremIpsum({ count: 2, units: 'words' })
      .split(' ')
      .map(word => word.charAt(0).toUpperCase() + word.slice(1))
      .join(' '),
    shortDescription: loremIpsum({ count: 2, units: 'sentences' }),
    lastActive,
    profilePicUrl: 'https://picsum.photos/50/50',
    profileUrl: '/testing',
    heroImageUrl: `https://picsum.photos/seed/${lastActive}/285/175`,
  }
}
github pluginjs / pluginjs / modules / infinite / samples / src / sections / button / index.js View on Github external
setTimeout(() => {
      resolve(
        loremIpsum({
          count: 5,
          format: 'html',
          units: 'paragraph'
        })
      )
    }, 1000)
  },
github RocketChat / Rocket.Chat.Livechat / src / components / Messages / MessageBubble / stories.js View on Github external
import { loremIpsum } from 'lorem-ipsum';
import centered from '@storybook/addon-centered/react';
import { withKnobs, boolean } from '@storybook/addon-knobs';
import { storiesOf } from '@storybook/react';

import { MessageBubble } from '.';


const text = loremIpsum({ count: 1, units: 'sentences' });

storiesOf('Messages|MessageBubble', module)
	.addDecorator(centered)
	.addDecorator(withKnobs)
	.add('default', () => (
		
			{text}
		
	))
	.add('inverse', () => (
github pluginjs / pluginjs / modules / infinite / samples / src / sections / disable-loader / index.js View on Github external
setTimeout(() => {
      resolve(
        loremIpsum({
          count: 5,
          format: 'html',
          units: 'paragraph'
        })
      )
    }, 1000)
  },
github RocketChat / Rocket.Chat.Livechat / src / components / Messages / Message / stories.js View on Github external
} from '../constants';
import { Message } from '.';


const messageTypes = {
	NULL: null,
	ROOM_NAME_CHANGED: MESSAGE_TYPE_ROOM_NAME_CHANGED,
	USER_ADDED: MESSAGE_TYPE_USER_ADDED,
	USER_REMOVED: MESSAGE_TYPE_USER_REMOVED,
	USER_JOINED: MESSAGE_TYPE_USER_JOINED,
	USER_LEFT: MESSAGE_TYPE_USER_LEFT,
	WELCOME: MESSAGE_TYPE_WELCOME,
	LIVECHAT_CLOSED: MESSAGE_TYPE_LIVECHAT_CLOSED,
};

const defaultMessage = loremIpsum({ count: 1, units: 'sentences' });
const defaultMessageExtra = loremIpsum({ count: 1, units: 'sentences' });

const defaultMarkdownMessage = `
# h1 Heading
## h2 Heading
### h3 Heading
#### h4 Heading
##### h5 Heading
###### h6 Heading

___

*This is bold text*

_This is italic text_
github berty / berty / tool / tyber / js / app / store / FakeData.tsx View on Github external
const randomDetail = () => {
	return {
		name: loremIpsum({
			count: 1,
			format: "plain",
			units: "words",
		}),
		description: loremIpsum({
			count: 1,
			format: "plain",
			sentenceLowerBound: 5,
			sentenceUpperBound: 8,
			units: "sentences",
		}).slice(0, -1),
	} as Detail;
};
github berty / berty / tool / tyber / js / app / store / FakeData.tsx View on Github external
const randomDetail = () => {
	return {
		name: loremIpsum({
			count: 1,
			format: "plain",
			units: "words",
		}),
		description: loremIpsum({
			count: 1,
			format: "plain",
			sentenceLowerBound: 5,
			sentenceUpperBound: 8,
			units: "sentences",
		}).slice(0, -1),
	} as Detail;
};
github pluginjs / pluginjs / modules / infinite / samples / src / sections / default / index.js View on Github external
setTimeout(() => {
      resolve(
        loremIpsum({
          count: 5,
          format: 'html',
          units: 'paragraph'
        })
      )
    }, 1000)
  },
github RocketChat / Rocket.Chat.Livechat / src / components / Messages / Message / stories.js View on Github external
import { Message } from '.';


const messageTypes = {
	NULL: null,
	ROOM_NAME_CHANGED: MESSAGE_TYPE_ROOM_NAME_CHANGED,
	USER_ADDED: MESSAGE_TYPE_USER_ADDED,
	USER_REMOVED: MESSAGE_TYPE_USER_REMOVED,
	USER_JOINED: MESSAGE_TYPE_USER_JOINED,
	USER_LEFT: MESSAGE_TYPE_USER_LEFT,
	WELCOME: MESSAGE_TYPE_WELCOME,
	LIVECHAT_CLOSED: MESSAGE_TYPE_LIVECHAT_CLOSED,
};

const defaultMessage = loremIpsum({ count: 1, units: 'sentences' });
const defaultMessageExtra = loremIpsum({ count: 1, units: 'sentences' });

const defaultMarkdownMessage = `
# h1 Heading
## h2 Heading
### h3 Heading
#### h4 Heading
##### h5 Heading
###### h6 Heading

___

*This is bold text*

_This is italic text_

~~Strikethrough~~

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.

ISC
Latest version published 2 years ago

Package Health Score

61 / 100
Full package analysis