@pinkkis/lorem-ipschwing

0.2.1 • Public • Published

Lorem Ipschwing

License: MIT GitHub package.json version

Wayne's World Lorem Ipsum Generator

Usage

import { Lorem, defaultConfig } from "@pinkkis/lorem-ipschwing";

const lorem = new Lorem(/*defaultConfig*/);

const sentence = lorem.generateSentence();
const paragraph = lorem.generateParagraph();

You can override default config values:

const defaultConfig = {
	sentenceLength: {
		min: 4,
		max: 8
	},
	paragraphLength: {
		min: 4,
		max: 8
	},
	ww1: true,
	ww2: true,
	useLongSentences: true,
	startWithLoremIpsum: true,
	sentenceAddThreshold: 0.6 // Math.random() > threshold
};

Noting that if useLongSentences is used, it creates much longer sentences


Wayne's World and Wayne's World 2 are the property of NBCUniversal and Paramount Pictures

Package Sidebar

Install

npm i @pinkkis/lorem-ipschwing

Weekly Downloads

1

Version

0.2.1

License

MIT

Unpacked Size

22.5 kB

Total Files

6

Last publish

Collaborators

  • pinkkis