Skip to content
Simple JavaScript-based sample text generator.
JavaScript
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
__tests__ closed #4 added dice Jul 13, 2018
scripts switched to rollup for bundling Jun 19, 2018
src closed #5 added Flow support Jul 13, 2018
.babelrc upgraded to Babel 7 Jan 17, 2020
.eslintrc.json adjusted ESLint rules Jul 4, 2018
.flowconfig closed #5 added Flow support Jul 13, 2018
.gitignore switched to rollup for bundling Jun 19, 2018
.npmignore removed /scripts folder from publishing Jun 19, 2018
.travis.yml Update .travis.yml Jul 4, 2018
CHANGELOG.md updated changelog Jul 14, 2018
LICENSE Initial commit Jun 19, 2018
README.md Update README.md Jul 13, 2018
package-lock.json
package.json updated version number Jan 17, 2020
rollup.config.js closed #5 added Flow support Jul 13, 2018

README.md

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

You can’t perform that action at this time.