Skip to content

amitguptagwl/fast-lorem-ipsum

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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