Skip to content
Generate Lorem Ipsum text quickly
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.vscode
assets/img
dist
tests
.gitignore
.travis.yml
LICENSE
README.md
clipboard.js
fli.js
index.js
package.json

README.md

fast-lorem-ipsum

Generate Lorem Ipsum text quickly

To use in a project

$npm install fast-lorem-ipsum
var fastLoremIpsum = require('fast-lorem-ipsum');

fastLoremIpsum("10c");
fastLoremIpsum("100w");

fastLoremIpsum(10,'c');

//Performance result (Tested on Chrome 55.0.2883 / Ubuntu (Linux) )
fastLoremIpsum(100, 'w');  //34,783,141 calls/ps
fastLoremIpsum(1000, 'w'); //31,239,051 calls/ps
fastLoremIpsum(3000, 'w'); //17,811,509 calls/ps
fastLoremIpsum(5000, 'w'); //12,929,931 calls/ps

To use from command line

$npm install fast-lorem-ipsum -g
$loremipsum -c 5
$loremipsum -w 5

To use from browser

Download and Include fli.js and use as per above snippet.

Benchmark

Performance comparision at coparejs. Worth to check

benchmark lorem ipsum

Worth to mention

  • stubmatic : A stub server to mock behaviour of HTTP(s) / REST / SOAP services.
  • fastify-xml-body-parser : Fastify plugin / module to parse XML payload / body into JS object using fast-xml-parser.
  • fast-xml-parser : XML to JS and vice versa rapidly. Works with NPM, CLI, Browser.
  • Grapes : Flexible Regular expression engine which can be applied on char stream. (under development)
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.