🚨 Shai-Hulud Strikes Again:More than 500 packages and 700+ versions compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

@pinkkis/lorem-ipschwing

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pinkkis/lorem-ipschwing

Wayne's World Lorem Ipsum Generator

latest
Source
npmnpm
Version
0.2.1
Version published
Maintainers
1
Created
Source

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

Keywords

Lorem Ipsum

FAQs

Package last updated on 08 Feb 2020

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