1.0.10 • Published 7 months ago

loerem v1.0.10

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

lörem ipsum

Lörem Ipsum - generated faux Swedish for the masses!

Usage:

npm install loerem

import lörem from "loerem";
console.log(lörem());

Comes with a multitude of options:

  • Number of paragraphs generated
  • Sentences per paragraph
  • Max sentence length
  • Minimum sentence length
  • Amount of new Swedish words
  • Amount of faux academic neologisms
  • Amount of names (based on 100 most common Swedish first names/surnames)
  • Amount of digital marketing buzzwords
  • Option to add a punchline ending random paragraphs
  • Format as headline
  • Generate names only
  • Option to begin with "Lörem ipsum..."

Takes a settings object wih these properties (all optional):

{
	numberOfParagraphs = 1,
	sentencesPerParagraph = 10,
	maxSentenceLength = 10,
	minSentenceLength = 1,
	isHeadline = false,
	isName = false,
	nyordFrequency = .1,
	neologismerFrequency = .05,
	namnFrequency = 0,
	buzzFrequency = 0,
	useLörem = true,
	punchline = 'Du kan vara drabbad.',
	wrapInDiv = false,
	paragraphStartWrap = '<p>',
	paragraphEndWrap = '</p>',
	alwaysWrapParagraph = false
}

Demo (in Swedish) here: https://lhli.net/stuff/l%C3%B6remIpsum/

1.0.9

7 months ago

1.0.10

7 months ago

1.0.8

1 year ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago