npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

bavaria-ipsum

v1.0.3

Published

Bavarian lorem ipsum like generator

Downloads

22

Readme

Build Status Code Climate Dependency Status

bavaria-ipsum v1.0.3

bavaria-ipsum is a JavaScript library inspired by http://bavaria-ipsum.de/. It simply generates random Bavarian text.

Installation

Node:

npm install bavaria-ipsum

Bower:

bower install bavaria-ipsum

Or get it from GitHub:

wget https://raw.githubusercontent.com/JiriChara/bavaria-ipsum/master/dist/bavaria-ipsum.min.js

Usage

In browser BavariaIpsum global variable will be available. In node you have to require it:

var BavariaIpsum = require('bavaria-ipsum');

Generate random Bavarian word:

var ipsum = new BavariaIpsum();
ipsum.generateWord();
// => 'griaß'

Generate random Bavarian sentence:

var ipsum = new BavariaIpsum();
ipsum.generateSentence();
// => 'Hinter\'m Gmiadlichkeit luja mehra bloß pfundig.'

// if you need a specific word count
ipsum.generateSentence(2);
// => 'Samma aso.'

Generate random Bavarian paragraph:

var ipsum = new BavariaIpsum();
ipsum.generateParagraph();
// => 'Biaschlegl woar singan vasteh Gidarn auszutzeln Sodala auf\'d Wolpern pfenningguat jedza schnacksln Biazelt bravs auf\'n Wolpern hogg Obandeln. Graudwiggal wiavui Singan landla oans a Heimatland auszutzeln Mordsgaudi o\'ha uns Maibam Fünferl blärrd Heimatland großherzig Weibaleid A. Beidl In spotzerl aweng Bia Gwiass gfoids, g\'hupft Reiwadatschi meidromml de hinter\'m, Ohrwaschl Ewig Prosit Wia. Schoo um huift gibt\'s Mordsgaudi. Basd eam, fei Bua hoid, Schuabladdla Gams maibam schuf Bavariae Oim sauwedda lustiga, sauakraud Maibam greana legst Habedehre Bussal sepp. Schorsch Marterl In Weibaleid. Obandeln Auffisteign Wiesn etza heid wolln Diandldrahn nia greana. Anbandeln auffi. Kneedl eana weibaleid Gschmeidig Sei da samma glei Wea wolln naa leck, des. Bloß sauwedda Hetschapfah Watschnbaam wiavui, hoggd Sauwedda. Schmankal zua Maß nachad, enzian, In, Lem. Obacht nacha pfundig glacht gean Greaßt Bradwurschtsemmal Griasnoggalsubbm du, sauakraud Singan ausgähd Haferl Gar gar Bua Umma. Aasgem von wo Hoam In, woschechta Obazda no geh Kimmt Schuabladdla, Gipfe glei. Fias Sauakraud anbandeln. Basd Wea baamwach Foidweg sammawiedaguad griasd iabaroi Wuascht wann ausgähd moand vui gsuffa eich Semmlkneedl Do Ledahosn See. Blosmusi muas Damischa nei. Musi mechad Gaudi amoi fensdaln Wea d\' koa Berg charivari woass Oachkatzlschwoaf i ghupft.'

// if you wish a specific count of sentences
ipsum.generateParagraph(1);
// => 'Hoam in du Gwiass hod Wos woass Sauakraud geh lem Wuascht.'

// if you wish the text to start with 'Bavaria ipsum dolor sit amet'
ipsum.generateParagraph(2, { useStartingSentence: true });
// => 'Bavaria ipsum dolor sit amet Gibt\'s I nois. Helfgod leck hi gor, Auffisteign Gmiadlichkeit.'

// it works even w/o length specified
ipsum.generateParagraph({ useStartingSentence: true });
// => 'Bavaria ipsum dolor sit amet Hoggd schee Koa In, Blosmusi. Haberertanz narrisch Radi Buachbinda Sauakraud Im Spezi Weiznglasl, Buachbinda Deandl pfiad. Hog Lewakaas nois schaugn gschmeidig, Gelbe haferl Fünferl A singd vui. Koa Suri Im scho ledahosn sepp Bitt sammawiedaguad soweid Auffisteign schnacksln nois Fünferl ognudelt Samma no. Au glei aweng Biawambn radler maßkruag Wiesn Biagadn moan Gidarn imma, Klampfn guad no, Haberertanz. Sauwedda Haferl Charivari damischa Brezn Singan gar Zwedschgndadschi red lustiga, wui oba hera Graudwiggal gfreit schuf. Marterl Biaschlegl wolpern fei, nackata sei Baamwach charivari. Wurscht Wanninger gfreit Ramasuri Gamsbart need Gscheckate Heiwog im sauwedda. Sagrisch Steckerleis Wolpern, kimmt schorsch ganze fias sagrisch Obazda. Schee A vasteh Kuaschwanz Fingahaggln.'

You can also overwrite following options:

var ipsum = new BavariaIpsum({
  startSentence: 'Bavaria Ipsum dolor sit amet',
  minSentenceWords: 2,
  maxSentenceWords: 20,
  showCommaChance: 0.1, // chance to show comma after some word in a sentence
  minParagraphSentences: 2,
  maxParagraphSentences: 20
});

Copyright © 2015 Jiri Chara. All Rights Reserved.