Skip to content

amitguptagwl/fast-lorem-ipsum

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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)

About

Generate Lorem Ipsum text quickly

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published