3.0.1 • Published 5 years ago

loremize v3.0.1

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

loremize

Build Status npm version

Simple JavaScript-based sample text generator.

Table of contents

Installation

npm install --save loremize

Breaking changes

1.x.x > 2.x.x

TLDR;

  • loremizeSentences is now called loremizeIpsumSentences
  • instead of using loremizeWords use either loremizeGreekDeities, loremizeRomanDeities or loremizeGermanicDeities

The function getRandomWord now requires a list of items to work:

getRandomWord: Function (items: Array<string>) => ();

Similar to that the loremizeSentences also requires a list of items to work:

loremizeSentences: Function (items: Array<string>) => (numberOfSentences: number, lowerBound: number, upperBound: number, asArray: boolean = false)

Same for the loremizeWords function; please note that now different delimiters are being used, depending on the item list:

loremizeWords: Function (items: Array<string>, delimiter: string = ' ') => (numberOfWords: number, asArray: boolean = false)

The loremizeSentences and loremizeWords functions should no longer be called, instead use the item-list-specific pendants: loremizeIpsumSentences, loremizeIpsums, loremizeGreekDeities, loremizerRomanDeities, loremizeGermanicDeities

License

MIT (https://github.com/Kaishiyoku/loremize/blob/master/LICENSE)

Author

Twitter: @kaishiyoku
Website: www.andreas-wiedel.de

3.0.1

5 years ago

3.0.0

5 years ago

2.2.1

7 years ago

1.2.0

7 years ago