fast-lorem-ipsum

1.2.0 • Public • Published

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-lorem-ipsum : Generate lorem ipsum words, sentences, paragraph very quickly.
  • Grapes : Flexible Regular expression engine which can be applied on char stream. (under development)

Package Sidebar

Install

npm i fast-lorem-ipsum

Weekly Downloads

333

Version

1.2.0

License

MIT

Unpacked Size

71.7 kB

Total Files

11

Last publish

Collaborators

  • amitgupta